import Link from 'next/link' import { useRouter } from 'next/router' import { IconChevronLeft } from 'ui' import * as NavItems from './NavigationMenu.constants' import clientLibsCommon from '~/../../spec/common-cli.yml' assert { type: 'yml' } const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => { const router = useRouter() const menu = NavItems[id] const FunctionLink = ({ title, id, icon, }: { title: string name: string id: string icon?: string }) => { return (
  • {icon && } {title}
  • ) } const SideMenuTitle = ({ title }: { title: string }) => { return ( {title} ) } const Divider = () => { return
    } const MenuSections = [ { key: 'general', label: 'General', }, { key: 'secrets', label: 'Secrets', }, { key: 'projects', label: 'Projects', }, { key: 'organizations', label: 'Organizations', }, { key: 'migration', label: 'Migration', }, { key: 'database', label: 'Database', }, { key: 'completion', label: 'Completion', }, ] return (
    Back to menu

    {menu.title ?? currentLevel}

    ) } export default NavigationMenuCliList