myprojectpackageprav
Version:
My package in npm
17 lines • 1.59 kB
JavaScript
import React from 'react';
var InputLabel = function (inputProps) {
var _a;
return (React.createElement("label", { htmlFor: (_a = inputProps === null || inputProps === void 0 ? void 0 : inputProps.labelProps) === null || _a === void 0 ? void 0 : _a.htmlFor, className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.className }, inputProps === null || inputProps === void 0 ? void 0 :
inputProps.label,
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.currency) && React.createElement("span", { className: "currency" }, "$"),
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.isbadge) && React.createElement("span", { className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.badge }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.isbadge),
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.mandatory) && React.createElement("span", { className: "mandatory" }, "*"),
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.isinfoLabel) && React.createElement("span", { className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.isinfoClassName, "data-tip": inputProps === null || inputProps === void 0 ? void 0 : inputProps.infoLabel },
React.createElement("span", { className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.isinfoIcon }))));
};
export default InputLabel;
//# sourceMappingURL=input-label.js.map