skilld-admin/src/config/nav.ts

138 lines
2.3 KiB
TypeScript

import type { Route } from "next";
import {
BarChart4,
Bolt,
BookA,
BookText,
Building,
CircleUser,
Cloudy,
FlaskConical,
FlaskRound,
GitCommitHorizontal,
Key,
LucideIcon,
Ruler,
Sparkles,
Users,
Wrench,
} from "lucide-react";
export type NavItem = {
href: Route;
title: string;
badge?: string;
icon?: LucideIcon;
};
export type GroupedNavItems = {
group: string;
items: NavItem[];
};
export const sideNavItems: GroupedNavItems[] = [
{
group: "EVALUATION",
items: [
{
href: "/dashboard/new-analysis",
title: "Create New Analysis",
icon: FlaskConical,
},
{
href: "/dashboard/analysis",
title: "Analysis",
icon: FlaskRound,
},
],
},
{
group: "COURSE",
items: [
{
href: "/dashboard/course",
title: "Your Course",
icon: BookText,
},
],
},
{
group: "ADMIN",
items: [
{
href: "/dashboard/users",
title: "Users",
icon: Users,
},
{
href: "/dashboard/organization",
title: "Organization",
icon: Building,
},
{
href: "/dashboard/account",
title: "Account",
icon: CircleUser,
},
{
href: "/dashboard/preferences",
title: "Preferences",
icon: Bolt,
},
{
href: "/dashboard/configuration",
title: "Configuration",
icon: Wrench,
},
{
href: "/dashboard/api-communication",
title: "Api Communication",
icon: Cloudy,
},
{
href: "/dashboard/course-admin",
title: "Course Admin",
icon: BookA,
},
],
},
{
group: "ACCOUNT",
items: [
{
href: "/dashboard/change-password",
title: "Change Password",
icon: Key,
},
],
},
{
group: "EVALUATIONS",
items: [
{
href: "/dashboard/criteria",
title: "Criteria",
icon: Ruler,
},
{
href: "/dashboard/skill",
title: "Skill",
icon: Sparkles,
},
{
href: "/dashboard/evaluation",
title: "Evaluation",
icon: BarChart4,
},
{
href: "/dashboard/commit",
title: "Commit",
icon: GitCommitHorizontal,
},
],
},
];