(props: { text: string; isTrailing?: boolean })
| 75 | * Leaf strings with text in them. |
| 76 | */ |
| 77 | const TextString = (props: { text: string; isTrailing?: boolean }) => { |
| 78 | const { text, isTrailing = false } = props |
| 79 | |
| 80 | const getTextContent = () => { |
| 81 | return `${text ?? ''}${isTrailing ? '\n' : ''}` |
| 82 | } |
| 83 | |
| 84 | return <span {...{ [DATA_EDITABLE_STRING]: true }}>{getTextContent()}</span> |
| 85 | } |
| 86 | |
| 87 | const CompositionString = (props: { text: string }) => { |
| 88 | const { text } = props |
nothing calls this directly
no test coverage detected
searching dependent graphs…