diff --git a/src/components/sections/KwaNtofontofoSpecialsSection.tsx b/src/components/sections/KwaNtofontofoSpecialsSection.tsx new file mode 100644 index 0000000..4af5070 --- /dev/null +++ b/src/components/sections/KwaNtofontofoSpecialsSection.tsx @@ -0,0 +1,60 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import { Card, CardHeader, CardTitle, CardContent, CardFooter } from '@/components/ui/Card' +import Image from 'next/image' +import Badge from '@/components/ui/Badge' + +export default function KwaNtofontofoSpecialsSection() { + const { items, loading } = useEmDashContent('promotions') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+

KwaNtofontofo Specials

+

+ Exclusive offers crafted to make your stay even more regal. Treat yourself to a memorable escape. +

+
+ {items.map((item) => { + const d = item.data as { title?: string; description?: string; price?: string; image?: string } + const imageUrl = d.image || 'https://images.pexels.com/photos/15640157/pexels-photo-15640157.jpeg?auto=compress&cs=tinysrgb&h=350' + return ( + +
+ {d.title +
+ + {d.title || 'Special'} + + +

{d.description || ''}

+ {d.price && ( + + {d.price} + + )} +
+
+ ) + })} +
+
+
+ ) +}