From 8d858b11385ac6bb66c5104d8bddd5dac5bb2375 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sat, 27 Jun 2026 09:51:16 +0000 Subject: [PATCH] Deploy --- src/components/sections/LocationSection.tsx | 93 +++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 src/components/sections/LocationSection.tsx diff --git a/src/components/sections/LocationSection.tsx b/src/components/sections/LocationSection.tsx new file mode 100644 index 0000000..d34eb2e --- /dev/null +++ b/src/components/sections/LocationSection.tsx @@ -0,0 +1,93 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import { Clock, Leaf, MapPin } from 'lucide-react' + +export default function LocationSection() { + const { items, loading } = useEmDashContent('business_hours') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + // Map over hours items (expected fields: day_of_week, open_time, close_time, is_closed, note) + const hours = items.map((item: any) => item.data as { + day_of_week?: string + open_time?: string + close_time?: string + is_closed?: boolean + note?: string + }) + + const address = { + line1: 'Via della Scrofa 65', + line2: '00186 Rome, Italy', + mapEmbed: 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2969.598534118071!2d12.472589315467225!3d41.898585379221504!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x132f609a1baf0f8b%3A0x2b1c5433b7e2b9f0!2sVia+della+Scrofa%2C+65%2C+00186+Roma+RM%2C+Italy!5e0!3m2!1sen!2sza!4v1690000000000', + } + + return ( +
+
+
+ {/* Map */} +
+