This commit is contained in:
2026-08-27 11:41:41 +02:00
parent 55a51a521d
commit 734ab92bca
66 changed files with 12545 additions and 483 deletions
+51
View File
@@ -0,0 +1,51 @@
import { Link } from '@tanstack/react-router'
type Props = {
role?: string | null
}
export function StaffTabs({ role }: Props) {
return (
<nav className="staff-tabs" aria-label="Bereich">
<Link
className="staff-tab"
to="/staff"
activeOptions={{ exact: true }}
activeProps={{ className: 'is-active' }}
viewTransition
>
Reservierungen
</Link>
{role === 'admin' && (
<Link
className="staff-tab"
to="/staff/tables"
activeProps={{ className: 'is-active' }}
viewTransition
>
Tische
</Link>
)}
{role === 'admin' && (
<Link
className="staff-tab"
to="/staff/team"
activeProps={{ className: 'is-active' }}
viewTransition
>
Mitarbeiter
</Link>
)}
{role === 'admin' && (
<Link
className="staff-tab"
to="/staff/settings"
activeProps={{ className: 'is-active' }}
viewTransition
>
Einstellungen
</Link>
)}
</nav>
)
}