import { defineMessage } from 'react-intl';
export default (function (_ref) {
  var acceptFiles = _ref.config.acceptFiles;
  return {
    schema: {
      format: 'data-url',
      type: 'string'
    },
    uiSchema: {
      'ui:options': {
        accept: acceptFiles === null || acceptFiles === void 0 ? void 0 : acceptFiles.map(function (ext) {
          return ".".concat(ext);
        }).join(',')
      }
    }
  };
});
export var name = defineMessage({
  id: "5lAmdW",
  defaultMessage: [{
    "type": 0,
    "value": "Tiedosto"
  }]
});
export var elementType = 'field';
//# sourceMappingURL=file.js.map