/* Shared page chrome: the linked footer. */
const { SiteFooter } = window.ApexAgencyDesignSystem_54b6ac;

function Footer({ compact = false }) {
  const go = (label, e) => {
    const href = FOOTER_LINKS[label];
    if (href) { e.preventDefault(); window.location.href = href; }
  };
  return (
    <SiteFooter
      className="apex-footer"
      compact={compact}
      email={CONTACT_INFO.email}
      phone={CONTACT_INFO.phone}
      socials={SOCIALS.map((x) => ({ ...x, href: x.href === '#' ? undefined : x.href }))}
      columns={FOOTER_COLUMNS.map((c) => ({ ...c, href: FOOTER_LINKS[c.label], items: c.items.map((i) => ({ label: i, href: FOOTER_LINKS[i] || '#' })) }))}
      onNavigate={go}
    />
  );
}

Object.assign(window, { Footer });
