import { defineMessage } from 'react-intl';
import _dummy from './_dummy';
import extendType from './_extendType';
import { TitleField } from './title'; // Used to identify step split points and display only the elements of the step.

export var StepTitle = function StepTitle() {
  return null;
};
export default extendType(_dummy, function (_ref) {
  var _ref$config = _ref.config,
      content = _ref$config.content,
      type = _ref$config.type,
      fillProps = _ref.fillProps;
  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'] = (fillProps === null || fillProps === void 0 ? void 0 : fillProps.disableSteps) ? TitleField : StepTitle;
    props.uiSchema['ui:title'] = content;
  };
});
export var name = defineMessage({
  id: "yxfPIz",
  defaultMessage: [{
    "type": 0,
    "value": "Vaiheen erotin ja otsikko"
  }]
});
export var elementType = 'element';
//# sourceMappingURL=stepTitle.js.map