import { Metaobject } from 'lib/shopify/types'; import { Suspense } from 'react'; import ImageDisplay from './image-display'; import RichTextDisplay from './rich-text-display'; const ImageWithTextBlock = ({ block }: { block: Metaobject }) => { const description = block.description ? JSON.parse(block.description) : null; return (
{block.title && (

{block.title}

)} {description ? (
) : (
)}
); }; export default ImageWithTextBlock;