@atlaskit/renderer
Version:
Renderer component
21 lines • 488 B
JavaScript
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;