@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
12 lines • 523 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getJetpackProductBenefits = getJetpackProductBenefits;
const translations_1 = require("./translations");
/**
* Get Jetpack product "Benefits" info based on the product purchase object.
*/
function getJetpackProductBenefits(product) {
const jetpackProductsBenefits = (0, translations_1.getJetpackProductsBenefits)();
return jetpackProductsBenefits[product.product_slug];
}
//# sourceMappingURL=get-jetpack-product-benefits.js.map