Download next.js/examples/cms-prismic/components/post-body.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-prismic/components/post-body.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-prismic/components/post-body.tsx
-
curl -L -o post-body.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-prismic/components/post-body.tsx
401 Bytes
| import { SliceZone } from "@prismicio/react"; | |
| import { Content } from "@prismicio/client"; | |
| import { components } from "../slices"; | |
| type PostBodyProps = { | |
| slices: Content.PostDocument["data"]["slices"]; | |
| }; | |
| export default function PostBody({ slices }: PostBodyProps) { | |
| return ( | |
| <div className="max-w-2xl mx-auto"> | |
| <SliceZone slices={slices} components={components} /> | |
| </div> | |
| ); | |
| } | |