(props: {
model: TwinViewModel;
say: SayFn;
onFollow: (chip: TwinChip) => void;
})
| 749 | } |
| 750 | |
| 751 | function ProseView(props: { |
| 752 | model: TwinViewModel; |
| 753 | say: SayFn; |
| 754 | onFollow: (chip: TwinChip) => void; |
| 755 | }): JSX.Element { |
| 756 | return ( |
| 757 | <div className="atlas-twin-prose" data-testid="codeatlas-twin-prose"> |
| 758 | {props.model.paragraphs.map((paragraph, index) => props.say(`p${index}`, paragraph))} |
| 759 | {props.model.chips.length > 0 && ( |
| 760 | <div className="atlas-twin-chips"> |
| 761 | {props.model.chips.map((chip) => ( |
| 762 | <button |
| 763 | key={chip.label} |
| 764 | type="button" |
| 765 | className="atlas-twin-chip" |
| 766 | data-testid="codeatlas-twin-chip" |
| 767 | disabled={chip.target === undefined} |
| 768 | onClick={() => props.onFollow(chip)} |
| 769 | > |
| 770 | {chip.label} |
| 771 | </button> |
| 772 | ))} |
| 773 | </div> |
| 774 | )} |
| 775 | {props.model.notes.map((text, index) => props.say(`n${index}`, text, 'note'))} |
| 776 | </div> |
| 777 | ); |
| 778 | } |
| 779 | |
| 780 | /** |
| 781 | * The junior's level: the order, and the words it took to say it. |
nothing calls this directly
no outgoing calls
no test coverage detected