Get the text content of a Text part.
import {Draw} from 'effect-tree'const part = Draw.text('foo')expect(Draw.getText(part)).toBe('foo') Copy
import {Draw} from 'effect-tree'const part = Draw.text('foo')expect(Draw.getText(part)).toBe('foo')
Get the text content of a Text part.