diff --git a/src/components/sections/LookbookGallerySection.tsx b/src/components/sections/LookbookGallerySection.tsx new file mode 100644 index 0000000..25e485e --- /dev/null +++ b/src/components/sections/LookbookGallerySection.tsx @@ -0,0 +1,68 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' + +export default function LookbookGallerySection() { + const { items, loading } = useEmDashContent('gallery') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+

+ Lookbook +

+
+ {items.map((item) => { + const d = item.data as { + title?: string + description?: string + image?: string + } + return ( +
+
+ {d.image && ( + {d.title + )} +
+
+ {d.title && ( +

{d.title}

+ )} + {d.description && ( +

{d.description}

+ )} +
+
+ ) + })} +
+
+
+ ) +}