import { Box, Button, Flex, FlexProps, HStack, useDisclosure, useColorModeValue as mode, Heading, } from '@chakra-ui/react' import * as React from 'react' import { Logo } from 'assets/icons/Logo' import { NextChakraLink } from '../nextChakraAdapters/NextChakraLink' import { NavLink } from './NavLink' import { NavMenu } from './NavMenu' import { Submenu } from './Submenu' import { ToggleButton } from './ToggleButton' import { Link } from './_data' const MobileNavContext = ({ links, ...props }: { links: Link[] } & FlexProps) => { const { isOpen, onToggle } = useDisclosure() return ( <> Typebot {links.map((link, idx) => link.children ? ( ) : ( {link.label} ) )} ) } const DesktopNavContent = ({ links, ...props }: { links: Link[] } & FlexProps) => { return ( Typebot {links.map((link, idx) => ( {link.children ? ( ) : ( {link.label} )} ))} Sign in ) } export const NavContent = { Mobile: MobileNavContext, Desktop: DesktopNavContent, }