import React, { useMemo } from 'react'; import { Link } from '@inertiajs/react'; import { useTranslation } from 'react-i18next'; import { useConsent } from '@/contexts/consent'; import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes'; const Footer: React.FC = () => { const { t } = useTranslation(['marketing', 'legal', 'common']); const { openPreferences } = useConsent(); const { localizedPath } = useLocalizedRoutes(); const links = useMemo(() => ({ home: localizedPath('/'), impressum: localizedPath('/impressum'), datenschutz: localizedPath('/datenschutz'), agb: localizedPath('/agb'), widerruf: localizedPath('/widerrufsbelehrung'), kontakt: localizedPath('/kontakt'), gift: localizedPath('/gutschein'), }), [localizedPath]); const currentYear = new Date().getFullYear(); return ( ); }; export default Footer;