// import apiCommonSections from '~/../../spec/common-client-libs-sections.json' import { RefIdOptions, RefKeyOptions } from './NavigationMenu' import NavigationMenuRefListItems from './NavigationMenuRefListItems' import React from 'react' interface INavigationMenuRefList { id: RefIdOptions lib: RefKeyOptions commonSections: any[] // to do type up // the keys of menu items that are allowed to be shown on the side menu // if undefined, we show all the menu items allowedClientKeys?: string[] active: boolean spec?: any } const NavigationMenuRefList: React.FC = ({ id, lib, commonSections, active, spec, }) => { const filteredSections = commonSections.filter((section) => { return !section.excludes?.includes(id) }) return (
) } export default React.memo(NavigationMenuRefList)