Spaces:
Sleeping
Sleeping
import type { Metadata } from "next"; | |
import { Fira_Code, Inter } from "next/font/google"; | |
import "@/assets/globals.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 const metadata: Metadata = { | |
title: "Create Next App", | |
description: "Generated by create next app", | |
}; | |
export default function RootLayout({ | |
children, | |
}: { | |
children: React.ReactNode; | |
}) { | |
return ( | |
<html lang="en" className={`${inter.variable} ${fira_code.variable}`}> | |
<body> | |
<Editor>{children}</Editor> | |
</body> | |
</html> | |
); | |
} | |