Download next.js/examples/cms-kontent-ai/components/layout.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-kontent-ai/components/layout.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-kontent-ai/components/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-kontent-ai/components/layout.tsx
426 Bytes
| import Alert from "./alert"; | |
| import Footer from "./footer"; | |
| import Meta from "./meta"; | |
| type LayoutProps = { | |
| preview: boolean; | |
| children: JSX.Element | JSX.Element[]; | |
| }; | |
| export default function Layout({ preview, children }: LayoutProps) { | |
| return ( | |
| <> | |
| <Meta /> | |
| <div className="min-h-screen"> | |
| <Alert preview={preview} /> | |
| <main>{children}</main> | |
| </div> | |
| <Footer /> | |
| </> | |
| ); | |
| } | |