"use client"; import Link from "next/link"; import type { OutlineChapterView } from "@/lib/api/types"; import { isCloseWindow, windowBadgeLabel, } from "@/lib/outline/outline"; interface OutlineChapterRowProps { chapter: OutlineChapterView; projectId: string; } // 单章大纲行(UX §6.7):章号 + beats + 伏笔窗口徽标(⚑)+ 「写此章」入口。 // 接近回收窗口的徽标用琥珀 + 「可回收」提示(a11y:图标 + 文案,不单靠色)。 export function OutlineChapterRow({ chapter, projectId }: OutlineChapterRowProps) { const windows = chapter.foreshadow_windows ?? []; return (
beats: {chapter.beats.join(" / ")}
) : ((无节拍)
)}