diff --git a/src/blocks/Showcase/Component.tsx b/src/blocks/Showcase/Component.tsx index 18ba07f..21c8709 100644 --- a/src/blocks/Showcase/Component.tsx +++ b/src/blocks/Showcase/Component.tsx @@ -23,7 +23,48 @@ type ShowcaseBlockProps = { items?: ShowcaseItem[] } -const COMING_SOON_BG = 'bg-muted/50' +function ShowcaseImage({ item }: { item: ShowcaseItem }) { + const imageUrl = item.image && typeof item.image === 'object' ? item.image.url : null + const imageAlt = item.image && typeof item.image === 'object' ? item.image.alt : item.title + + const inner = imageUrl ? ( + <> + {imageAlt + {item.imageUrl && ( +
+ )} + {item.imageUrl && ( +
+