import { useRef } from 'react'; import css from './Reader.module.css'; import { Disclosure } from './motion.js'; import { FoldSummaryText } from './LiveFold.js'; import { foldSummary } from './live-turn.js'; import { DiffStat } from './DiffPanel.js'; import { usePublishedHeight } from './StickyLane.js'; import type { LiveStep } from './live-turn.js'; /** Keep process counts discoverable after the live-fold presentation retires. */ export function ClosedProcessSummary({ steps, open, onChange, controls }: { steps: readonly LiveStep[]; open: boolean; onChange: (value: boolean) => void; controls: string; }) { const button = useRef(null); const lane = usePublishedHeight('--reader-summary-height'); if (!steps.length) return null; const summary = foldSummary(steps); return
} />
; }