'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import LogoutButton from '@/components/LogoutButton'; import packageJson from '@/package.json'; interface TabLayoutProps { children: React.ReactNode; } const TABS = [ { href: '/', label: 'Eingabe' }, { href: '/charts', label: 'Verlauf' }, ]; export default function TabLayout({ children }: TabLayoutProps) { const pathname = usePathname(); const version = packageJson.version; const buildDate = process.env.NEXT_PUBLIC_BUILD_DATE || new Date().toLocaleDateString('de-DE', { day: '2-digit', month: '2-digit', year: 'numeric' }); return (
{/* Outer wrapper: ~10% wider than the inner max-w-6xl (72rem → ~79rem), with border */}
{/* Page title */}

Werte-Log

{/* Inner content constrained to max-w-6xl */}
{/* Tab bar */}
{TABS.map(tab => { const isActive = pathname === tab.href; return ( {tab.label} ); })}
{/* Content panel */}
{children}
); }