'use client' import { useState } from 'react' import { useVulaContent } from '@/hooks/useVulaContent' import { Clock, Mail, MapPin, Phone } from 'lucide-react' import Input from '@/components/ui/Input' import Button from '@/components/ui/Button' export default function ContactSection() { const { items, loading } = useVulaContent('business_hours') const [formData, setFormData] = useState({ name: '', email: '', message: '' }) const [sent, setSent] = useState(false) 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 }) const handleSubmit = (e: React.FormEvent) => { e.preventDefault() // In production send to backend setSent(true) setFormData({ name: '', email: '', message: '' }) } return (

We'd Love to Hear from You

From our studio in Pretoria to your skin — every enquiry is handwritten care.

{/* Contact details */}

Studio & Workshop

42 Marula Lane, Hatfield, Pretoria, 0028

Phone

+27 12 345 6789

Email

hello@ngcobonaturals.co.za

Trading Hours

    {hours.map((h, i) => (
  • {h.day_of_week ?? '—'} {h.is_closed ? ( Closed ) : ( {h.open_time ?? '—'} – {h.close_time ?? '—'} )}
  • ))}

Closed on South African public holidays.

{/* Enquiry form */}

Send an Enquiry

{sent ? (

Thank you! We'll be in touch soon.

) : (
setFormData({ ...formData, name: e.target.value })} required className="rounded-xl border-[#daddd4] bg-[#f4f5f2]" /> setFormData({ ...formData, email: e.target.value })} required className="rounded-xl border-[#daddd4] bg-[#f4f5f2]" />