@try-at-software/input-elements
Version:
A package providing different input elements that are extensible and easily configurable for your custom needs.
17 lines (16 loc) • 635 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LabelRenderer = void 0;
const React = require("react");
const react_1 = require("@fluentui/react");
const FormTextRenderer_1 = require("./FormTextRenderer");
const LabelRendererComponent = (props) => {
if (!props)
return null;
const { label, required } = props;
if (!label)
return null;
return (React.createElement(react_1.Label, { required: required },
React.createElement(FormTextRenderer_1.FormTextRenderer, { text: label })));
};
exports.LabelRenderer = React.memo(LabelRendererComponent);