import Link from 'next/link';
import { Sidebar, SidebarHeader, SidebarSection, SidebarItem } from '@umami/react-zen';
import {
Globe,
LayoutDashboard,
Link as LinkIcon,
Logo,
Grid2X2,
Settings,
LockKeyhole,
} from '@/components/icons';
import { useMessages, useNavigation, useGlobalState } from '@/components/hooks';
export function SideNav(props: any) {
const { formatMessage, labels } = useMessages();
const { renderUrl, pathname } = useNavigation();
const [isCollapsed] = useGlobalState('sidenav-collapsed');
const links = [
{
label: formatMessage(labels.websites),
href: '/websites',
icon: ,
},
{
label: formatMessage(labels.boards),
href: '/boards',
icon: ,
},
{
label: formatMessage(labels.links),
href: '/links',
icon: ,
},
{
label: formatMessage(labels.pixels),
href: '/pixels',
icon: ,
},
{
label: formatMessage(labels.settings),
href: '/settings',
icon: ,
},
{
label: formatMessage(labels.admin),
href: '/admin',
icon: ,
},
].filter(n => n);
return (
} />
{links.map(({ href, label, icon }) => {
return (
);
})}
{``}
);
}