Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / dist / components / molecules / BackgroundMedia / BackgroundMedia.js
Size: Mime:
"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