UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

17 lines 973 B
import * as tslib_1 from "tslib"; import * as React from 'react'; import { PureComponent } from 'react'; import UIMedia from '../../../ui/Media'; var Media = (function (_super) { tslib_1.__extends(Media, _super); function Media() { return _super !== null && _super.apply(this, arguments) || this; } Media.prototype.render = function () { var _a = this.props, eventHandlers = _a.eventHandlers, id = _a.id, providers = _a.providers, type = _a.type, collection = _a.collection, cardDimensions = _a.cardDimensions, appearance = _a.appearance, resizeMode = _a.resizeMode; return (React.createElement(UIMedia, { id: id, type: type, collection: collection, providers: providers, onClick: eventHandlers && eventHandlers.media && eventHandlers.media.onClick, cardDimensions: cardDimensions, appearance: appearance, resizeMode: resizeMode })); }; return Media; }(PureComponent)); export default Media; //# sourceMappingURL=media.js.map