import { AlignEndHorizontal, ChartPie, Clock, Eye, Flame, Sheet, Tag, User, UserPlus, Video, } from '@/components/icons'; import { Funnel, Gauge, Lightning, Magnet, Money, Network, Path, Target } from '@/components/svg'; import { useMessages } from './useMessages'; import { useNavigation } from './useNavigation'; export function useWebsiteNavItems(websiteId: string) { const { t, labels } = useMessages(); const { pathname, renderUrl } = useNavigation(); const renderPath = (path: string) => renderUrl(`/websites/${websiteId}${path}`, { event: undefined, compare: undefined, view: undefined, unit: undefined, excludeBounce: undefined, }); const items = [ { label: t(labels.traffic), items: [ { id: 'overview', label: t(labels.overview), icon: , path: renderPath(''), }, { id: 'events', label: t(labels.events), icon: , path: renderPath('/events'), }, { id: 'sessions', label: t(labels.sessions), icon: , path: renderPath('/sessions'), }, { id: 'realtime', label: t(labels.realtime), icon: , path: renderPath('/realtime'), }, { id: 'performance', label: t(labels.performance), icon: , path: renderPath('/performance'), }, { id: 'compare', label: t(labels.compare), icon: , path: renderPath('/compare'), }, { id: 'breakdown', label: t(labels.breakdown), icon: , path: renderPath('/breakdown'), }, ], }, { label: t(labels.behavior), items: [ { id: 'goals', label: t(labels.goals), icon: , path: renderPath('/goals'), }, { id: 'funnel', label: t(labels.funnels), icon: , path: renderPath('/funnels'), }, { id: 'journeys', label: t(labels.journeys), icon: , path: renderPath('/journeys'), }, { id: 'retention', label: t(labels.retention), icon: , path: renderPath('/retention'), }, { id: 'replays', label: t(labels.replays), icon: