mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
28 lines
685 B
TypeScript
28 lines
685 B
TypeScript
|
"use client";
|
||
|
|
||
|
import { ReactNode } from "react";
|
||
|
import { ThemeProvider } from "next-themes";
|
||
|
// lib
|
||
|
import { StoreProvider } from "@/lib/store-context";
|
||
|
import { AppWrapper } from "@/lib/wrappers";
|
||
|
// styles
|
||
|
import "./globals.css";
|
||
|
|
||
|
interface RootLayoutProps {
|
||
|
children: ReactNode;
|
||
|
}
|
||
|
|
||
|
const RootLayout = ({ children, ...pageProps }: RootLayoutProps) => (
|
||
|
<html lang="en">
|
||
|
<body className={`antialiased`}>
|
||
|
<StoreProvider {...pageProps}>
|
||
|
<ThemeProvider themes={["light", "dark"]} defaultTheme="system" enableSystem>
|
||
|
<AppWrapper>{children}</AppWrapper>
|
||
|
</ThemeProvider>
|
||
|
</StoreProvider>
|
||
|
</body>
|
||
|
</html>
|
||
|
);
|
||
|
|
||
|
export default RootLayout;
|