From 36cb55edf7cdca798f9ed22a78ab81d3fe4ee9af Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:38:50 +0000 Subject: [PATCH] Deploy --- .../sections/CustomerStoriesSection.tsx | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/components/sections/CustomerStoriesSection.tsx diff --git a/src/components/sections/CustomerStoriesSection.tsx b/src/components/sections/CustomerStoriesSection.tsx new file mode 100644 index 0000000..79fb01e --- /dev/null +++ b/src/components/sections/CustomerStoriesSection.tsx @@ -0,0 +1,45 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import { Quote } from 'lucide-react' + +export default function CustomerStoriesSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+

Real People, Real Fits

+

Stories from the streets of Durban and beyond.

+
+ {items.map((item) => { + const d = item.data as { title?: string; excerpt?: string; body?: string; author?: string; category?: string; image?: string } + return ( +
+ {d.image && ( +
+ {d.title +
+ )} +
+ {d.category ?? 'Community'} +

{d.title}

+ {d.excerpt &&

{d.excerpt}

} + {d.author && ( +

+ {d.author} +

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