UNPKG

@atlaskit/renderer

Version:
21 lines 488 B
import React from 'react'; import { TextWithAnnotationDraft } from '../../ui/annotations/draft/component'; const TextWrapper = props => { const { startPos, endPos } = props; const { children } = props; if (!children) { return null; } return /*#__PURE__*/React.createElement(TextWithAnnotationDraft, { startPos: startPos, endPos: endPos, textHighlighter: props.textHighlighter, marks: props.marks }, children); }; export default TextWrapper;