"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.elementType = exports.name = exports["default"] = void 0;

var _reactIntl = require("react-intl");

var _default = function _default(_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(',')
      }
    }
  };
};

exports["default"] = _default;
var name = (0, _reactIntl.defineMessage)({
  id: "5lAmdW",
  defaultMessage: [{
    "type": 0,
    "value": "Tiedosto"
  }]
});
exports.name = name;
var elementType = 'field';
exports.elementType = elementType;
//# sourceMappingURL=file.cjs.map