UNPKG

@indec/form-builder

Version:

Form builder

26 lines (25 loc) 900 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _Icons = require("../../../Icons"); var _jsxRuntime = require("react/jsx-runtime"); function TitleWithIcon(_ref) { var title = _ref.title, isValid = _ref.isValid; return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", { className: "fb:flex fb:flex-row fb:gap-4 fb:items-center", children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h6", { className: "fb:text-xl fb:font-bold", children: title }), isValid ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icons.CheckCircleIcon, { className: "fb:w-6 fb:h-6 fb:text-green-600", "data-testid": "success-icon" }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icons.ErrorIcon, { className: "fb:w-6 fb:h-6 fb:text-red-600", "data-testid": "error-icon" })] }); } var _default = exports["default"] = TitleWithIcon;