import { Box, Center, HStack, Text, useColorModeValue as mode, LinkProps as ChakraLinkProps, } from '@chakra-ui/react' import { LinkProps } from 'next/link' import * as React from 'react' import { ChevronRightIcon } from '../../../assets/icons/ChevronRightIcon' import { NextChakraLink } from '../nextChakraAdapters/NextChakraLink' type SubmenuItemProps = LinkProps & Omit & { title: string icon?: React.ReactElement children: React.ReactNode href: string } export const SubmenuItem = (props: SubmenuItemProps) => { const { title, icon, children, href, ...rest } = props return (
{icon}
{title} {children}
) }