From ad97336c599b7d923edaf09033cd898ded41e3ac Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Wed, 5 Aug 2026 18:14:36 +0000 Subject: [PATCH] Deploy --- .../sections/BusinessHoursSection.tsx | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/components/sections/BusinessHoursSection.tsx diff --git a/src/components/sections/BusinessHoursSection.tsx b/src/components/sections/BusinessHoursSection.tsx new file mode 100644 index 0000000..343514f --- /dev/null +++ b/src/components/sections/BusinessHoursSection.tsx @@ -0,0 +1,59 @@ +'use client' +import { useVulaContent } from '@/hooks/useVulaContent' +import { Clock } from 'lucide-react' + +export default function BusinessHoursSection() { + const { items, loading } = useVulaContent('business_hours') + + if (loading) return
+ + if (items.length === 0) return null + + return ( +
+
+
+
+

Office hours

+

When to reach us

+
+ +
+ +
+ + + + + + + + + + {items.map((item) => { + const d = item.data as { day_of_week?: string; open_time?: string; close_time?: string; is_closed?: boolean; note?: string } + return ( + + + + + + ) + })} + +
DayHoursNote
{d.day_of_week} + {d.is_closed ? ( + Closed + ) : ( + {d.open_time} – {d.close_time} + )} + {d.note ? d.note : '—'}
+
+ +

+ Consultations are by appointment. If the office is closed, email us and we will respond the next working day. +

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