import React from 'react'; import { cn } from '@/lib/utils'; import { useState, useEffect } from 'react'; import { Link } from '@inertiajs/react'; interface FooterData { wosp_link?: string; registration_hours: Array<{ day: string; hours: string; }>; links: Array<{ name: string; url: string; external: boolean; }>; } interface FooterProps extends React.HTMLAttributes {} const currentYear = new Date().getFullYear(); export default function Footer({ className, ...props }: FooterProps) { const [footerData, setFooterData] = useState(null); useEffect(() => { fetch('/api/footer') .then(response => response.json()) .then(data => setFooterData(data)) .catch(error => console.error('Error fetching footer data:', error)); }, []); return ( ); }