From 5cd57877741f7bb73c729991ec2b64a189ff9034 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sat, 25 Jul 2026 13:58:35 +0000 Subject: [PATCH] Deploy --- src/components/sections/GuestRavesSection.tsx | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/components/sections/GuestRavesSection.tsx diff --git a/src/components/sections/GuestRavesSection.tsx b/src/components/sections/GuestRavesSection.tsx new file mode 100644 index 0000000..4d5a2a8 --- /dev/null +++ b/src/components/sections/GuestRavesSection.tsx @@ -0,0 +1,45 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' + +export default function GuestRavesSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) return
+ if (items.length === 0) return null + + const testimonials = items.slice(0, 3) + if (testimonials.length === 0) return null + + return ( +
+
+

What our guests say

+

Real stories from travellers who found more than a room—they found a home in the Mara.

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

"{d.excerpt}"

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

{d.author || 'Guest'}

+ {d.title &&

{d.title}

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