import PATHS from '#constants/paths'; import { Link } from '@inertiajs/react'; import { route } from '@izzyjs/route/client'; import { Anchor, Group, Text } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import ExternalLink from '~/components/common/external_link'; import { MantineLanguageSwitcher } from '~/components/common/mantine_language_switcher'; import { MantineThemeSwitcher } from '~/components/common/mantine_theme_switcher'; import packageJson from '../../../package.json'; import classes from './footer.module.css'; export function MantineFooter() { const { t } = useTranslation('common'); const links = [ { link: route('privacy').url, label: t('privacy') }, { link: route('terms').url, label: t('terms') }, { link: PATHS.EXTENSION, label: 'Extension' }, ]; const items = links.map((link) => ( {link.label} )); return (
{t('footer.made_by')}{' '} Sonny {' • '} {packageJson.version} {items}
); }