import { useLocalization } from '@fluent/react';
import classnames from 'classnames';
import { ReactNode } from 'react';
import { NavLink, useMatch } from 'react-router-dom';
import { GearIcon } from './commons/icon/GearIcon';
import { HumanIcon } from './commons/icon/HumanIcon';
import { RulerIcon } from './commons/icon/RulerIcon';
import { useBreakpoint } from '@/hooks/breakpoint';
import { HomeIcon } from './commons/icon/HomeIcon';
import { SkiIcon } from './commons/icon/SkiIcon';
import { WifiIcon } from './commons/icon/WifiIcon';
export function NavButton({
to,
children,
match,
state = {},
icon,
}: {
to: string;
children: ReactNode;
match?: string;
state?: any;
icon: ReactNode;
}) {
const doesMatch = useMatch({
path: match || to,
});
return (