From 3574feac70569596f86ff0ca32adcd0cf1fec722 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sun, 26 Jul 2026 17:41:19 +0000 Subject: [PATCH] Deploy --- .../sections/CurrentOffersSection.tsx | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/components/sections/CurrentOffersSection.tsx diff --git a/src/components/sections/CurrentOffersSection.tsx b/src/components/sections/CurrentOffersSection.tsx new file mode 100644 index 0000000..ca2a5c5 --- /dev/null +++ b/src/components/sections/CurrentOffersSection.tsx @@ -0,0 +1,51 @@ +'use client' +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import Button from '@/components/ui/Button' +import { Card, CardContent, CardFooter } from '@/components/ui/Card' + +export default function CurrentOffersSection() { + const { items, loading } = useEmDashContent('promotions') + + if (loading) return
+ if (items.length === 0) return null + + return ( +
+
+
+ + Seasonal Invitations + +
+

+ Exclusive Offers Await +

+
+ {items.map((item) => { + const d = item.data as { title?: string; description?: string; price?: number; image?: string } + return ( + +
+ {d.title +
+ +

{d.title}

+

{d.description}

+
+ + {d.price && ( + R{typeof d.price === 'number' ? Number(d.price || 0).toFixed(2) : d.price} + )} + + +
+ ) + })} +
+
+
+ ) +} \ No newline at end of file