Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/plugins/convert_to_page_template_modal/components/FormField",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormField=void 0;var a=_interopRequireDefault(t("@frontend-taglib-clay$clayui/form")),l=_interopRequireDefault(t("@frontend-taglib-clay$clayui/icon")),n=_interopRequireDefault(t("liferay!frontend-js-react-web$classnames")),o=(_interopRequireDefault(t("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(t("liferay!frontend-js-react-web$react")));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const FormField=({children:e,error:r,id:t,name:i,required:u=!0})=>{const f=Boolean(r);return o.default.createElement(a.default.Group,{className:(0,n.default)({"has-error":f})},o.default.createElement("label",{htmlFor:t},i,u?o.default.createElement(l.default,{className:"reference-mark",symbol:"asterisk"}):null),e,f&&o.default.createElement(a.default.FeedbackGroup,{role:"alert"},o.default.createElement(a.default.FeedbackItem,null,r)))};r.FormField=FormField;var i=FormField;r.default=i}}));
//# sourceMappingURL=FormField.js.map