diff --git a/src/components/sections/LocationSection.tsx b/src/components/sections/LocationSection.tsx new file mode 100644 index 0000000..1447bf3 --- /dev/null +++ b/src/components/sections/LocationSection.tsx @@ -0,0 +1,111 @@ +'use client' + +import { Clock, MapPin, Phone, Truck } from 'lucide-react' +import Image from 'next/image' +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Button from '@/components/ui/Button' + +export default function LocationSection() { + const { items, loading } = useEmDashContent('business_hours') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + const hours = items.map(item => item.data as { + day_of_week?: string + open_time?: string + close_time?: string + is_closed?: boolean + note?: string + }) + + return ( +
+
+
+ {/* Info side */} +
+

Durban Roots, Nationwide Reach

+

+ Born in Durban, shipping to every corner of Mzansi. Our doors are open — come through. +

+ +
+
+ +
+

Flagship

+

Durban Central, KZN, 4001

+
+
+ +
+ +
+

Shipping

+

Door-to-door nationwide — R65 flat rate in KZN, R95 rest of SA.

+
+
+ +
+ +
+

WhatsApp

+ +27 31 123 4567 +
+
+
+ + {/* Operating Hours */} +

+ + Operating Hours +

+
+ {hours.map((h, i) => ( +
+ {h.day_of_week} + + {h.is_closed + ? 'Closed' + : `${h.open_time} – ${h.close_time}`} + {h.note && {h.note}} + +
+ ))} +
+

* Public holiday hours may differ.

+
+ + {/* Map placeholder */} +
+ Durban city skyline +
+
+

Our Home

+

Durban, South Africa

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