import e from"classnames";import a,{forwardRef as o}from"react";import{Icon as l}from"@vibe/icon/mockedClassNames";import m from"./FieldLabel.module.scss.js";var r=o((function(o,r){var s=o.icon,i=void 0===s?"":s,t=o.labelText,n=void 0===t?"":t,c=o.labelFor,d=void 0===c?"":c,p=o.iconClassName,v=void 0===p?"":p,b=o.labelClassName,f=void 0===b?"":b,N=o.required,u=void 0!==N&&N,C=o.id,E=void 0===C?"":C,F=o.htmlFor,x=void 0===F?"":F;return n?a.createElement("section",{className:e(m.labelComponentWrapper,o.className)},a.createElement(l,{icon:i,className:e(m.labelComponentIcon,v),id:d,iconType:"font"}),a.createElement("label",{id:E,htmlFor:d||x,ref:r,className:e(m.labelComponentText,f)},n,u&&a.createElement("span",{className:m.required}," *"))):null}));export{r as default};
//# sourceMappingURL=FieldLabel.js.map
