import RoleLayout, { NavGroup } from "./RoleLayout";
import {
  LayoutDashboard, BookOpen, ClipboardList,
  CalendarCheck, Users, Calendar, User, MessageSquare,
  Megaphone, Library, Sparkles, Video,
} from "lucide-react";

/** Teacher portal shell. See `StudentLayout` for the nav-config rationale. */
const navGroups: NavGroup[] = [
  {
    labelKey: "sidebarGroup.teaching",
    items: [
      { titleKey: "nav.quickSetup", url: "/teacher/quick-setup", icon: Sparkles },
      { titleKey: "nav.dashboard", url: "/teacher/dashboard", icon: LayoutDashboard },
      { titleKey: "nav.courses", url: "/teacher/courses", icon: BookOpen },
      { titleKey: "nav.resourceLibrary", url: "/teacher/library", icon: Library },
      { titleKey: "nav.assignments", url: "/teacher/assignments", icon: ClipboardList },
      { titleKey: "nav.liveSessions", url: "/live", icon: Video },
    ],
  },
  {
    labelKey: "sidebarGroup.management",
    items: [
      { titleKey: "nav.attendance", url: "/teacher/attendance", icon: CalendarCheck },
      { titleKey: "nav.students", url: "/teacher/students", icon: Users },
      { titleKey: "nav.timetable", url: "/teacher/timetable", icon: Calendar },
    ],
  },
  {
    labelKey: "sidebarGroup.communication",
    items: [
      { titleKey: "nav.discussions", url: "/teacher/discussions", icon: MessageSquare },
      { titleKey: "nav.announcements", url: "/teacher/announcements", icon: Megaphone },
    ],
  },
  {
    labelKey: "sidebarGroup.account",
    items: [
      { titleKey: "nav.profile", url: "/teacher/profile", icon: User },
    ],
  },
];

export default function TeacherLayout() {
  return <RoleLayout navGroups={navGroups} role="teacher" />;
}
