"use client" import { siteConfig } from "@/config/site" import * as React from "react" import { BookOpen, Command, Frame, LifeBuoy, Map, PieChart, Send, Settings2, SquareTerminal, } from "lucide-react" import { NavMain } from "@/components/nav-main" import { NavProjects } from "@/components/nav-projects" import { NavSecondary } from "@/components/nav-secondary" import { NavUser } from "@/components/nav-user" import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "@/components/ui/sidebar" const data = { user: { name: "teacher", email: "teacher@example.com", avatar: "/avatars/teacher.jpg", }, navMain: [ { title: "教师首页", url: "/teacher/dashboard", icon: SquareTerminal, isActive: true, items: [ { title: "课程管理", url: "/teacher/courses", }, { title: "学生管理", url: "/teacher/students", }, { title: "题库管理", url: "/teacher/problems", }, ], }, { title: "统计分析", url: "/teacher/statistics", icon: PieChart, items: [ { title: "成绩统计", url: "/teacher/statistics/grades", }, { title: "错题分析", url: "/teacher/statistics/activity", }, ], }, { title: "设置", url: "#", icon: Settings2, items: [ { title: "一般设置", url: "/teacher/profile", }, { title: "语言", url: "/teacher/settings", }, ], }, ], navSecondary: [ { title: "帮助", url: "/", icon: LifeBuoy, }, { title: "反馈", url: siteConfig.url.repo.github, icon: Send, }, ], } export function TeacherSidebar({ ...props }: React.ComponentProps) { return (
Judge4c 教师端 Teaching Platform
{/* 教师端可自定义更多内容 */}
) }