From d4ae1ae34fc02bacce9ba831f109b11ab93b2579 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:47:43 +0000 Subject: [PATCH] Deploy --- .../sections/TestimonialsSection.tsx | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/components/sections/TestimonialsSection.tsx diff --git a/src/components/sections/TestimonialsSection.tsx b/src/components/sections/TestimonialsSection.tsx new file mode 100644 index 0000000..2ce4615 --- /dev/null +++ b/src/components/sections/TestimonialsSection.tsx @@ -0,0 +1,36 @@ +'use client' +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' + +export default function TestimonialsSection() { + const { items, loading } = useEmDashContent('posts') + if (loading) return
+ if (items.length === 0) return null + const reviews = items.slice(0, 3) + return ( +
+
+

What Guests Say

+
+ {reviews.map((item) => { + const d = item.data as { author?: string; excerpt?: string; image?: string } + return ( +
+ " +

{d.excerpt || 'Wonderful experience'}

+
+ {d.image && ( + {d.author + )} +
+

{d.author || 'Guest'}

+
+
+
+ ) + })} +
+
+
+ ) +} \ No newline at end of file