MCPcopy
hub / github.com/snarktank/ralph / NoteNode

Function NoteNode

flowchart/src/App.tsx:107–119  ·  view source on GitHub ↗
({ data }: { data: { content: string; color: { bg: string; border: string } } })

Source from the content-addressed store, hash-verified

105}
106
107function NoteNode({ data }: { data: { content: string; color: { bg: string; border: string } } }) {
108 return (
109 <div
110 className="note-node"
111 style={{
112 backgroundColor: data.color.bg,
113 borderColor: data.color.border,
114 }}
115 >
116 <pre>{data.content}</pre>
117 </div>
118 );
119}
120
121const nodeTypes = { custom: CustomNode, note: NoteNode };
122

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected