import { Grid, IconLabel, NavMenu, NavMenuItem, Row, Text } from '@umami/react-zen';
import Link from 'next/link';
import { WebsiteNav } from '@/app/(main)/websites/[websiteId]/WebsiteNav';
import { useMessages, useNavigation } from '@/components/hooks';
import { Globe, Grid2x2, LinkIcon } from '@/components/icons';
import { MobileMenuButton } from '@/components/input/MobileMenuButton';
import { NavButton } from '@/components/input/NavButton';
import { Logo } from '@/components/svg';
import { AdminNav } from './admin/AdminNav';
import { SettingsNav } from './settings/SettingsNav';
export function MobileNav() {
const { formatMessage, labels } = useMessages();
const { pathname, websiteId, renderUrl } = useNavigation();
const isAdmin = pathname.includes('/admin');
const isSettings = pathname.includes('/settings');
const links = [
{
id: 'websites',
label: formatMessage(labels.websites),
path: '/websites',
icon: ,
},
{
id: 'links',
label: formatMessage(labels.links),
path: '/links',
icon: ,
},
{
id: 'pixels',
label: formatMessage(labels.pixels),
path: '/pixels',
icon: ,
},
];
return (
{({ close }) => {
return (
<>
{links.map(link => {
return (
);
})}
{websiteId && }
{isAdmin && }
{isSettings && }
>
);
}}
} style={{ width: 'auto' }}>
umami
);
}