init
This commit is contained in:
51
src/layouts/nav-config-dashboard.tsx
Normal file
51
src/layouts/nav-config-dashboard.tsx
Normal file
@@ -0,0 +1,51 @@
|
||||
import { Label } from 'src/components/label';
|
||||
import { SvgColor } from 'src/components/svg-color';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const icon = (name: string) => <SvgColor src={`/assets/icons/navbar/${name}.svg`} />;
|
||||
|
||||
export type NavItem = {
|
||||
title: string;
|
||||
path: string;
|
||||
icon: React.ReactNode;
|
||||
info?: React.ReactNode;
|
||||
};
|
||||
|
||||
export const navData = [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
path: '/',
|
||||
icon: icon('ic-analytics'),
|
||||
},
|
||||
{
|
||||
title: 'User',
|
||||
path: '/user',
|
||||
icon: icon('ic-user'),
|
||||
},
|
||||
{
|
||||
title: 'Product',
|
||||
path: '/products',
|
||||
icon: icon('ic-cart'),
|
||||
info: (
|
||||
<Label color="error" variant="inverted">
|
||||
+3
|
||||
</Label>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Blog',
|
||||
path: '/blog',
|
||||
icon: icon('ic-blog'),
|
||||
},
|
||||
{
|
||||
title: 'Sign in',
|
||||
path: '/sign-in',
|
||||
icon: icon('ic-lock'),
|
||||
},
|
||||
{
|
||||
title: 'Not found',
|
||||
path: '/404',
|
||||
icon: icon('ic-disabled'),
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user