'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useTranslations } from 'next-intl'; import { useAuthStore } from '@/lib/stores/auth-store'; export function AdminSidebar() { const t = useTranslations('header'); const pathname = usePathname(); const user = useAuthStore((s) => s.user); const isSuperAdmin = user?.role === 'SUPER_ADMIN'; const items = [ { label: t('admin.users'), href: '/admin/users', show: true, icon: ( ), }, { label: t('admin.tenants'), href: '/admin/tenants', show: isSuperAdmin, icon: ( ), }, { label: t('admin.modules'), href: '/admin/modules', show: true, icon: ( ), }, { label: t('admin.customModules'), href: '/admin/custom-modules', show: true, icon: ( ), }, { label: t('admin.ldap'), href: '/admin/ldap', show: true, icon: ( ), }, { label: t('admin.smtp'), href: '/admin/smtp', show: true, icon: ( ), }, { label: t('admin.groups'), href: '/admin/groups', show: true, icon: ( ), }, ]; return ( // a11y/useSemanticElements: role="navigation" nicht auf das