File size: 779 Bytes
5916048
91c3567
5916048
91c3567
5be784e
5916048
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91c3567
 
 
5916048
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Fira_Code, Inter } from "next/font/google";
import { ThemeProvider } from "next-themes";
import "@/assets/globals.css";
import "highlight.js/styles/github.css";
import { Editor } from "@/components/editor";

const inter = Inter({
  subsets: ["latin"],
  display: "swap",
  variable: "--font-inter",
});

const fira_code = Fira_Code({
  subsets: ["latin"],
  display: "swap",
  variable: "--font-fira-code",
});

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en" className={`${inter.variable} ${fira_code.variable}`}>
      <body>
        <ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
          <Editor>{children}</Editor>
        </ThemeProvider>
      </body>
    </html>
  );
}