@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
9 lines • 397 B
JavaScript
import { JETPACK_LEGACY_PLANS, JETPACK_PRODUCTS_LIST, JETPACK_RESET_PLANS } from './constants';
export default function isJetpackPurchasableItem(itemSlug, options = {}) {
return [
...JETPACK_PRODUCTS_LIST,
...JETPACK_RESET_PLANS,
...(options.includeLegacy ? JETPACK_LEGACY_PLANS : []),
].includes(itemSlug);
}
//# sourceMappingURL=is-jetpack-purchasable-item.js.map