import { Box, type BoxProps } from "@chakra-ui/react"; import { useRouter } from "next/router"; const NavSidebarOption = ({ activeHrefPattern, disableHoverEffect, ...props }: { activeHrefPattern?: string; disableHoverEffect?: boolean } & BoxProps) => { const router = useRouter(); const isActive = activeHrefPattern && router.pathname.startsWith(activeHrefPattern); return ( {props.children} ); }; export default NavSidebarOption;