import { P } from "./roles";
import type { NavItem } from "@/components/pbps/nav";

type Section = Pick<NavItem, "to" | "label" | "perm" | "exact">[];
export const ATTENDANCE_NAV: Section = [
  { to: "/p/$pid/attendance", label: "To record", exact: true },
  { to: "/p/$pid/attendance/corrections", label: "Corrections & late" },
  { to: "/p/$pid/attendance/insights", label: "Insights" },
  { to: "/p/$pid/attendance/dropouts", label: "Dropout monitoring", perm: P.outcomeView },
];
export const OUTCOMES_NAV: Section = [
  { to: "/p/$pid/outcomes", label: "Board", exact: true },
  { to: "/p/$pid/outcomes/status", label: "Status by trainee" },
  { to: "/p/$pid/outcomes/approvals", label: "Resubmission approvals", perm: P.resubmitApprove },
];
export const ACTIVITY_NAV: Section = [
  { to: "/p/$pid/obligations", label: "Obligations", exact: true },
  { to: "/p/$pid/activities/review", label: "Review queue", perm: P.activityReview },
  { to: "/p/$pid/activities/compliance", label: "Compliance" },
  { to: "/p/$pid/activities/setup", label: "Definitions & schedules", perm: P.activityConfigure },
];
export const VERIFICATION_NAV: Section = [
  { to: "/p/$pid/verification", label: "Runs", perm: P.verSubjects, exact: true },
  { to: "/p/$pid/verification/review", label: "Review queue", perm: P.verApprove },
  { to: "/p/$pid/verification/plans", label: "Plans", perm: P.verPlan },
  { to: "/p/$pid/verification/results", label: "Results", perm: P.verAggregate },
];
