Files
aso/frontend/client-portal/src/layouts/dashboard/navbar/NavConfig.tsx
Muhammad Fajar 6eb225026a login validate
2022-11-14 13:50:10 +07:00

49 lines
1.2 KiB
TypeScript
Executable File

// components
import SvgIconStyle from '../../../components/SvgIconStyle';
// ----------------------------------------------------------------------
const getIcon = (name: string) => (
<SvgIconStyle src={`/icons/${name}.svg`} sx={{ width: 1, height: 1 }} />
);
const ICONS = {
user: getIcon('ic_user'),
ecommerce: getIcon('ic_ecommerce'),
analytics: getIcon('ic_analytics'),
dashboard: getIcon('ic_dashboard'),
};
const navConfig = [
// GENERAL
// ----------------------------------------------------------------------
{
items: [{ title: 'Dashboard', path: '/dashboard', icon: ICONS.dashboard }],
},
// Membership
// ----------------------------------------------------------------------
{
subheader: 'Membership',
items: [
{
title: 'Member List',
path: '/members',
icon: ICONS.user,
},
// {
// title: 'Member Movement',
// // path: '/',
// icon: ICONS.user,
// children: [
// { title: '', path: '/medicines' },
// { title: 'Obat', path: '/medicines' },
// { title: 'Obat', path: '/medicines' },
// ],
// },
],
},
];
export default navConfig;