28 lines
790 B
TypeScript
28 lines
790 B
TypeScript
import Link from 'next/link';
|
|
import { t } from '@/lib/i18n';
|
|
|
|
const items = [
|
|
{ href: '/admin', label: t('admin.overview') },
|
|
{ href: '/admin/bookings', label: t('admin.bookings') },
|
|
{ href: '/admin/services', label: t('admin.services') },
|
|
{ href: '/admin/staff', label: t('admin.staff') },
|
|
{ href: '/admin/users', label: t('admin.users') },
|
|
{ href: '/admin/audit', label: t('admin.audit') },
|
|
];
|
|
|
|
export function AdminNav() {
|
|
return (
|
|
<nav className="flex gap-1 md:flex-col" aria-label="Admin">
|
|
{items.map((item) => (
|
|
<Link
|
|
key={item.href}
|
|
href={item.href}
|
|
className="rounded-lg px-3 py-2 text-sm font-medium hover:bg-black/5 dark:hover:bg-white/10"
|
|
>
|
|
{item.label}
|
|
</Link>
|
|
))}
|
|
</nav>
|
|
);
|
|
}
|