diff --git a/src/components/sections/StayPracticalSection.tsx b/src/components/sections/StayPracticalSection.tsx new file mode 100644 index 0000000..d8e3174 --- /dev/null +++ b/src/components/sections/StayPracticalSection.tsx @@ -0,0 +1,72 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' + +export default function StayPracticalSection() { + const { items, loading } = useEmDashContent('business_hours') + + if (loading) return
+ if (items.length === 0) return null + + const weekDays = items.filter(i => !(i.data as any).is_closed) + const closedDays = items.filter(i => (i.data as any).is_closed) + + return ( +
+
+

Everything you need for a seamless stay

+

Check-in, dining hours, and how to reach us—so nothing surprises you.

+
+
+

Reception & Dining Hours

+
    + {weekDays.map((item) => { + const d = item.data as { day_of_week?: string; open_time?: string; close_time?: string; note?: string } + return ( +
  • + {d.day_of_week} + {d.open_time} – {d.close_time} +
  • + ) + })} + {closedDays.map((item) => { + const d = item.data as { day_of_week?: string; note?: string } + return ( +
  • + {d.day_of_week} + Closed {d.note ? `(${d.note})` : ''} +
  • + ) + })} +
+
+
+

Contact & Check-in Info

+
    +
  • + Check-in: + 2:00 PM – 10:00 PM (late arrival by arrangement) +
  • +
  • + Check-out: + 11:00 AM +
  • +
  • + Phone: + +254 712 345 678 +
  • +
  • + Email: + info@masaisuites.com +
  • +
  • + Address: + Mara Serena Road, Maasai Mara, Kenya +
  • +
+
+
+
+
+ ) +}