import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["formData", "schema"];
import { FormattedMessage } from 'react-intl';
import { jsx as _jsx } from "react/jsx-runtime";
export default (function (_ref) {
  var formData = _ref.formData,
      schema = _ref.schema,
      props = _objectWithoutProperties(_ref, _excluded);

  if (schema["enum"]) {
    return props.uiSchema["ui:options"].element.yes || /*#__PURE__*/_jsx(FormattedMessage, {
      id: "F0dHQ0",
      defaultMessage: [{
        "type": 0,
        "value": "Hyväksyn"
      }]
    });
  } else {
    var defaultEnumNames = [schema.enumNames[0] === '' ? /*#__PURE__*/_jsx(FormattedMessage, {
      id: "4ajajg",
      defaultMessage: [{
        "type": 0,
        "value": "Kyllä"
      }]
    }) : schema.enumNames[0], schema.enumNames[1] === '' ? /*#__PURE__*/_jsx(FormattedMessage, {
      id: "JVSOMe",
      defaultMessage: [{
        "type": 0,
        "value": "Ei"
      }]
    }) : schema.enumNames[1]];
    return formData === undefined ? /*#__PURE__*/_jsx(FormattedMessage, {
      id: "nk8wjQ",
      defaultMessage: [{
        "type": 0,
        "value": "Ei valintaa"
      }]
    }) : defaultEnumNames === null || defaultEnumNames === void 0 ? void 0 : defaultEnumNames[formData ? 0 : 1];
  }
});
//# sourceMappingURL=boolean.js.map