import { defineMessage } from 'react-intl';
import Markdown from '../../Markdown';
import extendType from './_extendType';
import _dummy from './_dummy';
import { jsx as _jsx } from "react/jsx-runtime";
export default extendType(_dummy, function (_ref) {
  var _ref$config = _ref.config,
      content = _ref$config.content,
      type = _ref$config.type;
  return function (props) {
    var _props$uiSchema;

    props.schema.additionalType = type;
    (_props$uiSchema = props.uiSchema) !== null && _props$uiSchema !== void 0 ? _props$uiSchema : props.uiSchema = {};

    props.uiSchema['ui:field'] = function () {
      return /*#__PURE__*/_jsx(Markdown, {
        children: content
      });
    };

    props.uiSchema['ui:should-update'] = content;
  };
});
export var name = defineMessage({
  id: "sHVt9f",
  defaultMessage: [{
    "type": 0,
    "value": "Leipäteksti"
  }]
});
export var elementType = 'element';
//# sourceMappingURL=body.js.map