"use client"; import Link from "next/link"; import { Flag, PenLine } from "lucide-react"; import { Badge } from "@/components/ui/Badge"; import type { OutlineChapterView } from "@/lib/api/types"; import { isCloseWindow, windowBadgeLabel, } from "@/lib/outline/outline"; import { buttonClass } from "@/lib/ui/variants"; interface OutlineChapterRowProps { chapter: OutlineChapterView; projectId: string; } // 单章大纲行(UX §6.7):章号 + beats + 伏笔窗口徽标(lucide Flag 图标)+ 「写此章」入口。 // 接近回收窗口的徽标用琥珀 + 「可回收」提示(a11y:图标 + 文案,不单靠色)。 export function OutlineChapterRow({ chapter, projectId }: OutlineChapterRowProps) { const windows = chapter.foreshadow_windows ?? []; return (
  • 第 {chapter.no} 章
    {chapter.beats && chapter.beats.length > 0 ? (

    节拍: {chapter.beats.join(" / ")}

    ) : (

    (无节拍)

    )}
  • ); }