import { Text, RichText, Field, withDatasourceCheck, } from '@sitecore-content-sdk/nextjs'; import { ComponentProps } from 'lib/component-props'; import { JSX } from 'react'; type ContentBlockProps = ComponentProps & { fields: { heading: Field; content: Field; }; }; /** * 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 => (
); export default withDatasourceCheck()(ContentBlock);