import Link from 'next/link'
import { ChevronLeft } from 'lucide-react'
import { BASE_PATH } from '~/lib/constants'
import clientLibsCommon from '~/spec/common-cli.yml' with { type: 'yml' }
import * as NavItems from './NavigationMenu.constants'
const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {
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}
{MenuSections.map((section) => {
return (
<>
{clientLibsCommon.commands
.filter((x) => x.product === section.key)
.map((x, index) => {
return
})}
>
)
})}
)
}
export default NavigationMenuCliList