Buckets:
| import { | |
| Text, | |
| RichText, | |
| Field, | |
| withDatasourceCheck, | |
| } from "@sitecore-jss/sitecore-jss-nextjs"; | |
| import { ComponentProps } from "lib/component-props"; | |
| type ContentBlockProps = ComponentProps & { | |
| fields: { | |
| heading: Field<string>; | |
| content: Field<string>; | |
| }; | |
| }; | |
| /** | |
| * A simple Content Block component, with a heading and rich text block. | |
| * This is the most basic building block of a content site, and the most basic | |
| * JSS component that's useful. | |
| */ | |
| const ContentBlock = ({ fields }: ContentBlockProps): JSX.Element => ( | |
| <div className="contentBlock"> | |
| <Text tag="h2" className="contentTitle" field={fields.heading} /> | |
| <RichText className="contentDescription" field={fields.content} /> | |
| </div> | |
| ); | |
| export default withDatasourceCheck()<ContentBlockProps>(ContentBlock); | |
Xet Storage Details
- Size:
- 803 Bytes
- Xet hash:
- 61152b7d09a3f3b5051fd735c0445a0876e50832eed4c47113ad74c01f7b305a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.