import { useTheme } from 'common/Providers' import Image from 'next/image' import Link from 'next/link' import { useRouter } from 'next/router' import React from 'react' import { IconChevronLeft } from '~/../../packages/ui' import * as NavItems from './NavigationMenu.constants' import * as Accordion from '@radix-ui/react-accordion' interface Props { id: string active: boolean } const NavigationMenuGuideList: React.FC = ({ id, active }) => { const router = useRouter() const { isDarkMode } = useTheme() const menu = NavItems[id] // get url const url = router.asPath // remove the end of the url if a deep link const firstLevelRoute = url?.split('/')?.slice(0, 4)?.join('/') return ( ) } export default React.memo(NavigationMenuGuideList)