UNPKG

@automattic/calypso-products

Version:

This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.

15 lines 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isTieredVolumeSpaceAddon = isTieredVolumeSpaceAddon; const camel_or_snake_slug_1 = require("./camel-or-snake-slug"); const constants_1 = require("./constants"); /** * This deals with the tiered volume space addon. Also see ./is-space-upgrade.ts for other * storage products. * @param product Product name * @returns boolean indicating whether the product is a space addon. */ function isTieredVolumeSpaceAddon(product) { return constants_1.PRODUCT_1GB_SPACE === (0, camel_or_snake_slug_1.camelOrSnakeSlug)(product); } //# sourceMappingURL=is-tiered-volume-space-addon.js.map