sandbox-web-ide/app/layout.tsx

35 lines
892 B
TypeScript
Raw Normal View History

2024-04-06 19:03:04 -04:00
import type { Metadata } from "next"
2024-04-11 05:14:10 -04:00
import { GeistSans } from "geist/font/sans"
import { GeistMono } from "geist/font/mono"
2024-04-06 19:03:04 -04:00
import "./globals.css"
import { ThemeProvider } from "@/components/layout/themeProvider"
2024-04-09 01:20:15 -04:00
import { ClerkProvider } from "@clerk/nextjs"
2024-03-19 12:13:18 -04:00
export const metadata: Metadata = {
2024-04-11 05:14:10 -04:00
title: "Sandbox",
description: "A collaborative, AI-powered, auto-scaling code sandbox",
2024-04-06 19:03:04 -04:00
}
2024-03-19 12:13:18 -04:00
export default function RootLayout({
children,
}: Readonly<{
2024-04-06 19:03:04 -04:00
children: React.ReactNode
2024-03-19 12:13:18 -04:00
}>) {
return (
2024-04-09 01:20:15 -04:00
<ClerkProvider>
2024-04-11 05:14:10 -04:00
<html lang="en" className={`${GeistSans.variable} ${GeistMono.variable}`}>
<body>
2024-04-09 01:20:15 -04:00
<ThemeProvider
attribute="class"
defaultTheme="dark"
forcedTheme="dark"
disableTransitionOnChange
>
{children}
</ThemeProvider>
</body>
</html>
</ClerkProvider>
2024-04-06 19:03:04 -04:00
)
2024-03-19 12:13:18 -04:00
}