import { Icon, Text, Row, NavMenu, NavMenuItem } from '@umami/react-zen'; import { Eye, Lightning, User, Clock, Lightbulb, Target, Funnel, Path, Magnet, Tag, Money, Network, } from '@/components/icons'; import { useMessages, useNavigation } from '@/components/hooks'; import Link from 'next/link'; export function WebsiteNav({ websiteId }: { websiteId: string }) { const { formatMessage, labels } = useMessages(); const { pathname, renderTeamUrl } = useNavigation(); const links = [ { id: 'overview', label: formatMessage(labels.overview), icon: , path: '', }, { id: 'events', label: formatMessage(labels.events), icon: , path: '/events', }, { id: 'sessions', label: formatMessage(labels.sessions), icon: , path: '/sessions', }, { id: 'realtime', label: formatMessage(labels.realtime), icon: , path: '/realtime', }, { id: 'insights', label: formatMessage(labels.insights), icon: , path: '/insights', }, { id: 'goals', label: formatMessage(labels.goals), icon: , path: '/goals', }, { id: 'funnel', label: formatMessage(labels.funnels), icon: , path: '/funnels', }, { id: 'journeys', label: formatMessage(labels.journeys), icon: , path: '/journeys', }, { id: 'retention', label: formatMessage(labels.retention), icon: , path: '/retention', }, { id: 'utm', label: formatMessage(labels.utm), icon: , path: '/utm', }, { id: 'revenue', label: formatMessage(labels.revenue), icon: , path: '/revenue', }, { id: 'attribution', label: formatMessage(labels.attribution), icon: , path: '/attribution', }, ]; const selected = links.find(({ path }) => path && pathname.endsWith(path))?.id || 'overview'; return ( {links.map(({ id, label, icon, path }) => { const isSelected = selected === id; return ( {icon} {label} ); })} ); }