import React from 'react'; import { NavLink } from 'react-router-dom'; import { cn } from '@/lib/utils'; import { ADMIN_HOME_PATH, ADMIN_EVENTS_PATH, ADMIN_SETTINGS_PATH, ADMIN_TASKS_PATH, ADMIN_BILLING_PATH, } from '../constants'; const navItems = [ { to: ADMIN_HOME_PATH, label: 'Dashboard', end: true }, { to: ADMIN_EVENTS_PATH, label: 'Events' }, { to: ADMIN_TASKS_PATH, label: 'Tasks' }, { to: ADMIN_BILLING_PATH, label: 'Billing' }, { to: ADMIN_SETTINGS_PATH, label: 'Einstellungen' }, ]; interface AdminLayoutProps { title: string; subtitle?: string; actions?: React.ReactNode; children: React.ReactNode; } export function AdminLayout({ title, subtitle, actions, children }: AdminLayoutProps) { React.useEffect(() => { document.body.classList.add('tenant-admin-theme'); return () => { document.body.classList.remove('tenant-admin-theme'); }; }, []); return (
Fotospiel Tenant Admin
{subtitle}
}