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