import React from 'react'; import { Link, usePage } from '@inertiajs/react'; import { useTranslation } from 'react-i18next'; import MarketingLayout from '@/layouts/mainWebsite'; import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes'; type LegalShowProps = { seoTitle: string; title: string; content: string; effectiveFrom?: string | null; effectiveFromLabel?: string | null; versionLabel?: string | null; slug: string; }; const LegalShow: React.FC = (props) => { const { seoTitle, title, content, effectiveFromLabel, versionLabel, slug } = props; const { t } = useTranslation('marketing'); const { localizedPath } = useLocalizedRoutes(); const { auth } = usePage<{ auth?: { user?: { id?: number } | null } }>().props; const showWithdrawalAction = slug === 'widerrufsbelehrung' && Boolean(auth?.user); return (

Die Fotospiel App

{title}

{(effectiveFromLabel || versionLabel) && (

{[effectiveFromLabel, versionLabel].filter(Boolean).join(' ยท ')}

)}
{showWithdrawalAction && (

{t('withdrawal.cta_title')}

{t('withdrawal.cta_body')}

{t('withdrawal.cta_button')}
)}
); }; LegalShow.layout = (page: React.ReactNode) => page; export default LegalShow;