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