"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const RatioImage_module_scss_1 = __importDefault(require("./RatioImage.module.scss"));
const RatioImage = ({ src, ratio, style = {} }) => {
    return (react_1.default.createElement("div", { className: RatioImage_module_scss_1.default.root, style: Object.assign({ backgroundImage: `url(${src})`, paddingTop: `${ratio * 100}%` }, style) }));
};
exports.default = RatioImage;
//# sourceMappingURL=RatioImage.js.map