Files
tabletten/components/AppLayout.tsx
2026-03-12 09:11:43 +01:00

45 lines
1.1 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use client';
import LogoutButton from '@/components/LogoutButton';
import packageJson from '@/package.json';
interface AppLayoutProps {
children: React.ReactNode;
}
export default function AppLayout({ children }: AppLayoutProps) {
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 (
<div className="app-wrapper">
<div className="app-container">
{/* Seitentitel */}
<h1 className="app-title">Tabletten-Check</h1>
<div className="app-inner">
{/* Logout-Button oben rechts */}
<div className="app-logout-bar">
<LogoutButton className="btn-logout" />
</div>
{/* Inhaltsbereich */}
<main className="app-main">
{children}
</main>
<footer className="app-footer">
<a href="mailto:rxf@gmx.de">
mailto:rxf@gmx.de
</a>
<div>Version {version} {buildDate}</div>
</footer>
</div>
</div>
</div>
);
}