tasko/app/(platform)/layout.tsx

19 lines
521 B
TypeScript

import { Toaster } from 'sonner';
import { ClerkProvider } from '@clerk/nextjs';
import { ModalProvider } from '@/components/providers/modal-provider';
import { QueryProvider } from '@/components/providers/query-provider';
const PlatformLayout = ({ children }: { children: React.ReactNode }) => {
return (
<ClerkProvider afterSignOutUrl='/'>
<QueryProvider>
<Toaster />
<ModalProvider />
{children}
</QueryProvider>
</ClerkProvider>
);
};
export default PlatformLayout;