import { Tabs, TabList, Tab, Icon, Text, Row } from '@umami/react-zen';
import { useWebsite } from '@/components/hooks/useWebsite';
import { useMessages, useNavigation } from '@/components/hooks';
import { Clock, Eye, Lightning, User, ChartPie } from '@/components/icons';
export function WebsiteTabs() {
const website = useWebsite();
const { pathname, renderUrl } = useNavigation();
const { formatMessage, labels } = useMessages();
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: 'reports',
label: formatMessage(labels.reports),
icon: ,
path: '/reports',
},
];
const selectedKey = links.find(({ path }) => path && pathname.includes(path))?.id || 'overview';
return (
{links.map(({ id, label, icon, path }) => {
return (
{icon}
{label}
);
})}
);
}