import Link from "next/link" import { fetchSiteInfo } from "@/graphql/queries/getSiteInfo" function normalizePhone(raw: string) { const digits = raw.replace(/[^\d+]/g, "") return digits ? `tel:${digits}` : null } function lines(v: string) { return v.split(/\r?\n/).filter(Boolean) } export default async function SiteInfo() { const page = await fetchSiteInfo() const get = (k: string) => page?.metadata ?.find((m) => m.key.toLowerCase() === k.toLowerCase()) ?.value?.trim() || "" const address = get("Address") const email = get("Email") const phone = get("Phone") const timings = get("Timings") const allEmpty = [address, email, phone, timings].every((v) => !v) if (allEmpty) return null return (