I have some common dialogs which are accessible from anywhere from the app. Thus I need to place them at root layout.tsx. But It is giving this error.
layout.tsx
export default async function Layout({ children }: { children: any }) {
return (
<>
{children}
<CreateAssistantDialog.Root />
</>
)
}