"use strict";

exports.__esModule = true;
exports.default = void 0;

var _react = _interopRequireDefault(require("react"));

var _PreviewComponent = _interopRequireDefault(require("./PreviewComponent"));

var _EditButton = _interopRequireDefault(require("./EditButton"));

var _EditComponent = _interopRequireDefault(require("./EditComponent"));

var _Media = require("../../../constants/Media");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const Image = {
  name: 'image',
  previewComponent: props => /*#__PURE__*/_react.default.createElement(_PreviewComponent.default, props),
  editButton: props => /*#__PURE__*/_react.default.createElement(_EditButton.default, props),
  editComponent: props => /*#__PURE__*/_react.default.createElement(_EditComponent.default, props),
  filter: media => media.type === _Media.MEDIA_TYPE_IMAGE
};
var _default = Image;
exports.default = _default;