import type { ProjectedMessage } from '../../types'; interface UndoRibbonProps { /** The synthetic undo-marker message emitted by the projector * (`source === 'undo'`). */ message: ProjectedMessage; } /** * Horizontal ribbon that marks where a `context.undo` record spliced earlier * prompts out of the conversation. Receives the `ProjectedMessage` whose * `source === 'undo'` so we can show how many prompts / messages were removed. */ export function UndoRibbon({ message }: UndoRibbonProps) { const count = message.undo?.count ?? 0; const removed = message.undo?.removedMessageCount ?? 0; return (