Repository URL to install this package:
|
Version:
2.7.11 ▾
|
"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");
function renderImageOrVideo(props) {
if (props.alt && props.src) {
return React.createElement(styled_1.StyledBackgroundImage, {
src: props.src,
alt: props.alt
});
} else {
return React.createElement(styled_1.StyledBackgroundVideo, Object.assign({}, props));
}
}
exports.renderImageOrVideo = renderImageOrVideo; //# sourceMappingURL=renderProps.js.map