2024-02-16 01:49:19 +00:00
|
|
|
import { Toaster } from 'sonner';
|
|
|
|
import { ClerkProvider } from '@clerk/nextjs';
|
2024-02-15 02:30:10 +00:00
|
|
|
|
2024-02-16 01:49:19 +00:00
|
|
|
import { ModalProvider } from '@/components/providers/modal-provider';
|
|
|
|
import { QueryProvider } from '@/components/providers/query-provider';
|
2024-02-15 02:30:10 +00:00
|
|
|
|
|
|
|
const PlatformLayout = ({ children }: { children: React.ReactNode }) => {
|
|
|
|
return (
|
2024-12-23 18:34:01 +00:00
|
|
|
<ClerkProvider afterSignOutUrl='/'>
|
2024-02-15 02:30:10 +00:00
|
|
|
<QueryProvider>
|
|
|
|
<Toaster />
|
|
|
|
<ModalProvider />
|
|
|
|
{children}
|
|
|
|
</QueryProvider>
|
|
|
|
</ClerkProvider>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default PlatformLayout;
|