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_1 = tslib_1.__importDefault(require("react"));
const exotic_1 = require("exotic");
const Empty_1 = tslib_1.__importDefault(require("../../atoms/Empty"));
const styled_1 = require("./styled");
/**
* used to render figure caption
*/
function renderCaption(props) {
const {
caption
} = props;
if (exotic_1.isEmpty(caption) === false) {
return react_1.default.createElement(styled_1.FigureCaption, null, caption);
} else {
return react_1.default.createElement(Empty_1.default, null);
}
}
exports.renderCaption = renderCaption;
function renderFigureImage(props) {
const {
alt,
height,
renderImage,
src,
width
} = props;
return react_1.default.createElement(styled_1.StyledImage, {
doAutoAlign: true,
width: width,
height: height,
renderImage: renderImage,
src: src,
alt: alt
});
}
exports.renderFigureImage = renderFigureImage; //# sourceMappingURL=renderProps.js.map