import {
Box,
Flex,
Text,
IconButton,
Button,
Stack,
Collapse,
Icon,
Link,
Popover,
PopoverTrigger,
PopoverContent,
useColorModeValue,
useBreakpointValue,
useDisclosure,
} from '@chakra-ui/react';
import {
HamburgerIcon,
CloseIcon,
ChevronDownIcon,
ChevronRightIcon,
} from '@chakra-ui/icons';
import AuthButton from '../AuthButton'
export default function WithSubnavigation() {
const { isOpen, onToggle } = useDisclosure();
return (
:
}
variant={'ghost'}
aria-label={'Toggle Navigation'}
/>
Cath.exe
);
}
const DesktopNav = () => {
const linkColor = useColorModeValue('gray.600', 'gray.200');
const linkHoverColor = useColorModeValue('gray.800', 'white');
const popoverContentBgColor = useColorModeValue('white', 'gray.800');
return (
{NAV_ITEMS.map((navItem) => (
{navItem.label}
{navItem.children && (
{navItem.children.map((child) => (
))}
)}
))}
);
};
const DesktopSubNav = ({ label, href, subLabel }) => {
return (
{label}
{subLabel}
);
};
const MobileNav = () => {
return (
{NAV_ITEMS.map((navItem) => (
))}
);
};
const MobileNavItem = ({ label, children, href }) => {
const { isOpen, onToggle } = useDisclosure();
return (
{label}
{children && (
)}
{children &&
children.map((child) => (
{child.label}
))}
);
};
const NAV_ITEMS = [
{
label: 'Home',
href: '/',
},
{
label: 'Control Panel',
children: [
{
label: 'Main',
subLabel: 'Control Everything',
href: '/controlpanel',
},
{
label: 'Commands',
subLabel: 'Control Caths commands',
href: '/controlpanel/commands',
},
],
},
{
label: 'Coming soon...',
href: '#',
},
];