layout.tsx 844 B

123456789101112131415161718192021222324252627282930313233
  1. import type { Metadata } from "next";
  2. import { Inter } from "next/font/google";
  3. import "./globals.css";
  4. import { TrpcContextProvider } from "@/components/providers/TrpcContextProvider";
  5. import { SessionProvider } from "@/components/providers/SessionProvider";
  6. const inter = Inter({ subsets: ["latin"] });
  7. export const metadata: Metadata = {
  8. title: "Coco Apps",
  9. description: "Cocorobo's Apps Platform",
  10. };
  11. export default function RootLayout({
  12. children,
  13. }: Readonly<{
  14. children: React.ReactNode;
  15. }>) {
  16. // const [theme] = useState("cupcake")
  17. const theme = "cupcake"
  18. return (
  19. <html lang="en" data-theme={theme}>
  20. <body className={inter.className}>
  21. <SessionProvider>
  22. <TrpcContextProvider>
  23. {children}
  24. </TrpcContextProvider>
  25. </SessionProvider>
  26. </body>
  27. </html>
  28. );
  29. }