diff --git a/src/components/sections/GuestStoriesSection.tsx b/src/components/sections/GuestStoriesSection.tsx new file mode 100644 index 0000000..33684ab --- /dev/null +++ b/src/components/sections/GuestStoriesSection.tsx @@ -0,0 +1,56 @@ +'use client' + +import { Quote } from 'lucide-react' +import { useEmDashContent } from '@/hooks/useEmDashContent' + +export default function GuestStoriesSection() { + const { items, loading } = useEmDashContent('posts') + + if (loading) return ( +
+
+
+ ) + + if (items.length === 0) return null + + // Take first 3 posts for testimonial display + const testimonials = items.slice(0, 3) + + return ( +
+
+

What Our Guests Say

+

+ Real stories from travelers who found something special in the heart of Limpopo. +

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

+ "{d.excerpt || d.body?.substring(0, 150) || 'A truly unforgettable experience.'}" +

+
+
+ {(d.author || d.title || 'G')[0]} +
+
+

{d.author || d.title || 'Guest'}

+ {d.category && ( +

{d.category}

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