"use client";
import Link from "next/link";
import { Mail, Phone, MapPin, ShieldCheck } from "lucide-react";
import { Navbar } from "@/components/layout/Navbar";
import { Footer } from "@/components/layout/Footer";
import { useSiteSettings } from "@/contexts/SiteSettingsContext";
import { appName } from "@/lib/siteConfig";
import { LocationMap } from "@/components/events/LocationMap";
export default function ContactPage() {
const { settings, loading } = useSiteSettings();
const orgName = settings.org_name || appName;
const email = settings.org_email || "";
const phone = settings.org_phone || "";
const address = settings.org_address || "";
const ioName = settings.legal_io_name || "";
const ioEmail = settings.legal_io_email || "";
const hasAny = !!(email || phone || address);
return (
Contact {orgName}
We'd love to hear from you — reach out any of the ways below.
{!loading && !hasAny && (
Contact details haven't been set up yet.
)}
{email && (
)}
{phone && (
)}
{address && (
)}
{address && (
)}
{/* POPIA: the Information Officer, once one is set in Site Settings → Legal. */}
{ioName && (
Privacy and your personal information
Our Information Officer is {ioName}
{ioEmail && <> — {ioEmail} >}.
Contact them about the information we hold about you, or see our{" "}
privacy notice.
)}
);
}