import { Column, Focusable, Row, Tooltip, TooltipTrigger } from '@umami/react-zen'; import { IconLabel } from '@/components/common/IconLabel'; import Link from '@/components/common/Link'; import { NavMenu } from '@/components/common/NavMenu'; import { useMessages, useNavigation } from '@/components/hooks'; import { ArrowLeft, Globe, User, Users } from '@/components/icons'; export function AdminNav({ onItemClick }: { onItemClick?: () => void }) { const { t, labels } = useMessages(); const { pathname, renderUrl } = useNavigation(); const items = [ { label: t(labels.manage), items: [ { id: 'users', label: t(labels.users), path: '/admin/users', icon: , }, { id: 'websites', label: t(labels.websites), path: '/admin/websites', icon: , }, { id: 'teams', label: t(labels.teams), path: '/admin/teams', icon: , }, ], }, ]; const selectedKey = items .flatMap(e => e.items) ?.find(({ path }) => path && pathname.startsWith(path))?.id; return ( } label={t(labels.back)} padding /> {t(labels.back)} ); }