@khatastroffik/react-text-renderer-components
Version:
a zero-dependencies component library providing (pure) text rendering for common and custom data/field types.
26 lines (20 loc) • 779 B
JavaScript
import {jsx as $9GH7N$jsx, Fragment as $9GH7N$Fragment} from "react/jsx-runtime";
import $9GH7N$react from "react";
class $16cd8d6e54516f22$export$58ab3ed211eed562 extends (0, $9GH7N$react).Component {
constructor(props){
super(props);
this.value = this.props.value;
this.pure = !!this.props["pure"];
}
render() {
const textToDisplay = this.getFormatedText();
if (this.pure) return /*#__PURE__*/ (0, $9GH7N$jsx)((0, $9GH7N$Fragment), {
children: textToDisplay
});
return /*#__PURE__*/ (0, $9GH7N$jsx)("span", {
children: textToDisplay
});
}
}
export {$16cd8d6e54516f22$export$58ab3ed211eed562 as AbstractRenderer};
//# sourceMappingURL=AbrstractRenderer.bfeebb87.js.map