Initial commit - modstagram-next
This commit is contained in:
23
src/components/Layout.tsx
Normal file
23
src/components/Layout.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/contexts/ThemeContext";
|
||||
import { ReactQueryProvider } from "@/providers/ReactQueryProvider";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
import BackgroundPrefetch from "@/components/BackgroundPrefetch";
|
||||
|
||||
interface ILayoutProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
function Layout({ children }: ILayoutProps) {
|
||||
return (
|
||||
<ThemeProvider>
|
||||
<ReactQueryProvider>
|
||||
<Toaster />
|
||||
<BackgroundPrefetch />
|
||||
{children}
|
||||
</ReactQueryProvider>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default Layout;
|
||||
Reference in New Issue
Block a user