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    
Size: Mime:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

const tslib_1 = require("tslib");

const react_1 = tslib_1.__importDefault(require("react"));

const Placeholder_1 = require("./..");

const styled_1 = require("./styled");
/**
 * used to render figure caption
 */


function renderCaption(props) {
  return react_1.default.createElement(Placeholder_1.TextPlaceholder, null);
}

exports.renderCaption = renderCaption;

function renderFigureImage(props) {
  const {
    height,
    width
  } = props;
  return react_1.default.createElement(Placeholder_1.ImagePlaceholder, {
    width: width,
    height: height
  });
}

exports.renderFigureImage = renderFigureImage;

function renderWrapper(props) {
  const {
    className,
    children
  } = props;
  const passthroughProps = Object.freeze({
    className,
    'data-qa': props['data-qa']
  });
  return react_1.default.createElement(styled_1.FigureWrapper, Object.assign({}, passthroughProps), children);
}

exports.renderWrapper = renderWrapper; //# sourceMappingURL=renderProps.js.map