import { Flex } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import { useCookieConsent } from '@app/hooks/useCookieConsent'; interface FooterProps { privacyPolicy?: string; termsAndConditions?: string; accessibilityStatement?: string; cookiePolicy?: string; impressum?: string; analyticsEnabled?: boolean; } export default function Footer({ privacyPolicy, termsAndConditions, accessibilityStatement, cookiePolicy, impressum, analyticsEnabled = false }: FooterProps) { const { t } = useTranslation(); const { showCookiePreferences } = useCookieConsent({ analyticsEnabled }); // Helper to check if a value is valid (not null/undefined/empty string) const isValidLink = (link?: string) => link && link.trim().length > 0; return (