'use client'; import { useEffect, useState } from 'react'; import { FacebookIcon, InstagramIcon, WhatsAppIcon } from './icons'; interface Config { facebook_url?: string; instagram_url?: string; whatsapp_url?: string; address?: string; phone?: string; email?: string; } const gold = '#E8A849'; const navy = '#010D1E'; const cream = '#f5f0e8'; export default function Footer() { const [config, setConfig] = useState({}); useEffect(() => { fetch('/api/site-assets') .then((res) => res.json()) .then((json) => setConfig(json.data || {})) .catch(() => {}); }, []); return ( ); }