(props: { length?: number; isLineBreak?: boolean })
| 94 | */ |
| 95 | |
| 96 | const ZeroWidthString = (props: { length?: number; isLineBreak?: boolean }) => { |
| 97 | const { length = 0, isLineBreak = false } = props |
| 98 | return ( |
| 99 | <span |
| 100 | {...{ [DATA_EDITABLE_ZERO_WIDTH]: isLineBreak ? 'n' : 'z', [DATA_EDITABLE_LENGTH]: length }} |
| 101 | > |
| 102 | {'\uFEFF'} |
| 103 | {isLineBreak ? <br /> : null} |
| 104 | </span> |
| 105 | ) |
| 106 | } |
| 107 | |
| 108 | export default String |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…