'use client' import { useEffect, useState, type ReactNode } from 'react' import Link from 'next/link' import { Syne } from 'next/font/google' import { Moon, Sun, ArrowLeft } from 'lucide-react' const syne = Syne({ subsets: ['latin'], weight: ['400', '500', '600', '700', '800'] }) type LegalPageShellProps = { title: string subtitle: string children: ReactNode } export default function LegalPageShell({ title, subtitle, children }: LegalPageShellProps) { const [theme, setTheme] = useState('theme-light') useEffect(() => { const savedTheme = localStorage.getItem('theme') if (savedTheme) { setTheme(savedTheme) } }, []) const toggleTheme = () => { const newTheme = theme === 'theme-dark' ? 'theme-light' : 'theme-dark' setTheme(newTheme) localStorage.setItem('theme', newTheme) } return ( <>
Zurück zur Startseite
Rechtliches

{title}

{subtitle}

{children}
) }