diff --git a/src/components/sections/iKhayaCollectionsSection.tsx b/src/components/sections/iKhayaCollectionsSection.tsx new file mode 100644 index 0000000..3b9d381 --- /dev/null +++ b/src/components/sections/iKhayaCollectionsSection.tsx @@ -0,0 +1,33 @@ +'use client' +import Image from 'next/image' +import { useVulaContent } from '@/hooks/useVulaContent' + +export default function iKhayaCollectionsSection() { + const { items, loading } = useVulaContent('product_carousels') + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+
+ {items.map((item) => { + const d = item.data as Record + const imageUrl = d.image + const title = d.title || d.name || d.headline + const body = d.body || d.description || d.excerpt || d.bio + return ( +
+ {imageUrl &&
{title
} +
+ {title &&

{title}

} + {body &&

{body}

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