Manage Sidebar Menus
API to Fetch Menus
import { getDictionary } from '@app/[lang]/dictionaries';
export async function getMenus(locale: string) {
const dictionary = await getDictionary(locale);
const { sidebar } = dictionary;
return [
{
label: sidebar.menu.home,
children: [
{
path: `/${locale}/dashboards/misc`,
label: sidebar.menuItem.misc,
icon: 'misc',
},
...
]
}
...
}
]
}Types of Menu Item
Section Labels
Collapsible Menu Items
Nav Item
Last updated