(
kind: TranscriptEntry["kind"],
label: string,
text: string
)
| 458 | } |
| 459 | |
| 460 | const addEntry = ( |
| 461 | kind: TranscriptEntry["kind"], |
| 462 | label: string, |
| 463 | text: string |
| 464 | ) => { |
| 465 | setTranscript((items) => [ |
| 466 | ...items, |
| 467 | { |
| 468 | id: nextId(), |
| 469 | kind, |
| 470 | label, |
| 471 | text, |
| 472 | }, |
| 473 | ]) |
| 474 | } |
| 475 | |
| 476 | const nextId = () => { |
| 477 | const id = nextIdRef.current |
no test coverage detected