Repository URL to install this package:
|
Version:
4.0.61 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const styled_1 = require("./styled");
const renderProps_1 = require("./renderProps");
class BackgroundMedia extends React.PureComponent {
render() {
const _a = this.props,
{
className
} = _a,
props = tslib_1.__rest(_a, ["className"]);
const view = renderProps_1.renderImageOrVideo(props);
return React.createElement(styled_1.BackgroundWrap, {
className: className
}, view, React.createElement(styled_1.LightFade, null), React.createElement(styled_1.DarkFade, null));
}
}
exports.BackgroundMedia = BackgroundMedia;
exports.default = BackgroundMedia; //# sourceMappingURL=BackgroundMedia.js.map