Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download app/layout.tsx from enzostvs/hub-api-playground: direct link, hf CLI and curl.
- Browser
- Download file 779 Bytes
-
https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/31f728775a02ac838f67e1e46a30b1a36c0dc32e/app/layout.tsx
- Command line
-
hf download hf://spaces/enzostvs/hub-api-playground@31f728775a02ac838f67e1e46a30b1a36c0dc32e/app/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/31f728775a02ac838f67e1e46a30b1a36c0dc32e/app/layout.tsx
779 Bytes
| 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> | |
| ); | |
| } | |