({ data }: { data: { content: string; color: { bg: string; border: string } } })
| 105 | } |
| 106 | |
| 107 | function 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 | |
| 121 | const nodeTypes = { custom: CustomNode, note: NoteNode }; |
| 122 |
nothing calls this directly
no outgoing calls
no test coverage detected