"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TextRequiredFields = void 0;
var _locale = require("@mirai/locale");
var _ui = require("@mirai/ui");
var _react = _interopRequireDefault(require("react"));
var _TextRequiredFields = require("./TextRequiredFields.l10n");
var style = _interopRequireWildcard(require("./TextRequiredFields.module.css"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const TextRequiredFields = _ref => {
  let others = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
  const _useLocale = (0, _locale.useLocale)(),
    translate = _useLocale.translate;
  return /*#__PURE__*/_react.default.createElement(_ui.Text, _extends({
    small: true
  }, others, {
    className: (0, _ui.styles)(style.text, others.className)
  }), /*#__PURE__*/_react.default.createElement("span", {
    className: style.asterisk
  }, "*"), " ", translate(_TextRequiredFields.L10N.CAPTION));
};
exports.TextRequiredFields = TextRequiredFields;
TextRequiredFields.displayName = 'Mirai:Component:TextRequiredFields';
TextRequiredFields.propTypes = {};
//# sourceMappingURL=TextRequiredFields.js.map