import type { ActiveNav } from "@/lib/nav/items";
import { NavItems } from "./NavItems";

interface LeftNavProps {
  // 项目内页传 projectId → 展开项目级入口（大纲/伏笔/审稿，UX §3.1）。
  projectId?: string;
  activeNav?: ActiveNav;
}

// 桌面静态左导航（UX §5.1 / §3.1）。<lg 隐藏，由 NavDrawer 汉堡抽屉替代。
export function LeftNav({ projectId, activeNav }: LeftNavProps) {
  return (
    <nav
      className="hidden w-44 shrink-0 border-r border-line bg-panel py-4 lg:block"
      aria-label="主导航"
    >
      <NavItems projectId={projectId} activeNav={activeNav} />
    </nav>
  );
}
