import * as Accordion from '@radix-ui/react-accordion' 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' interface Props { currentLevel: string id: string setLevel?: any } const NavigationMenuGuideList: React.FC = ({ currentLevel, id, setLevel }) => { const router = useRouter() const { isDarkMode } = useTheme() const menu = NavItems[id] //console.log(id, 'url is:', menu.url) // 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 NavigationMenuGuideList