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 styled_1 = require("./styled");

function defaultRenderSalePrice(props) {
  return react_1.default.createElement(styled_1.SalePrice, {
    "aria-label": "sale-price"
  }, props.salePrice);
}

exports.defaultRenderSalePrice = defaultRenderSalePrice;

function defaultRenderRegularPrice(props) {
  return react_1.default.createElement(styled_1.RegularPrice, {
    "aria-label": "regular-price",
    isSalePrice: props.isSalePrice
  }, props.regularPrice);
}

exports.defaultRenderRegularPrice = defaultRenderRegularPrice;

function defaultRenderWrapper(props) {
  const {
    className,
    children
  } = props;
  const passthroughProps = Object.freeze({
    className,
    'data-qa': props['data-qa']
  });
  return react_1.default.createElement(styled_1.PriceWrapper, Object.assign({
    "aria-label": "product-price"
  }, passthroughProps), children);
}

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