MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ProseView

Function ProseView

graph-ui/src/twin/TwinPanel.tsx:751–778  ·  view source on GitHub ↗
(props: {
    model: TwinViewModel;
    say: SayFn;
    onFollow: (chip: TwinChip) => void;
})

Source from the content-addressed store, hash-verified

749}
750
751function 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected