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="sticky top-[var(--chrome)] hidden max-h-[calc(100vh-var(--chrome))] w-44 shrink-0 self-start overflow-y-auto border-r border-line bg-panel py-4 lg:block"
      aria-label="主导航"
    >
      <NavItems projectId={projectId} activeNav={activeNav} />
    </nav>
  );
}
