UNPKG

@automattic/calypso-products

Version:

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

10 lines (9 loc) 423 B
import { getJetpackProductsWhatIsIncluded } from './translations'; import type { Product } from './types'; /** * Get Jetpack product "Includes" info based on the product purchase object. */ export function getJetpackProductWhatIsIncluded( product: Product ) { const jetpackProductsIncludesInfo = getJetpackProductsWhatIsIncluded(); return jetpackProductsIncludesInfo[ product.product_alias ?? product.product_slug ]; }