import { usePage } from '@inertiajs/react'; import { type SharedData } from '@/types'; export default function AppLogo() { const { translations } = usePage().props; const navigationTranslations = translations && typeof translations.dashboard === 'object' && translations.dashboard !== null ? (translations.dashboard as Record).navigation : null; const groupLabel = navigationTranslations && typeof navigationTranslations === 'object' && navigationTranslations !== null ? (navigationTranslations as Record).group_label : null; const areaLabel = typeof groupLabel === 'string' ? groupLabel : 'Kundenbereich'; return (
Fotospiel
Fotospiel {areaLabel}
); }