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) 444 B
import { getJetpackProductsWhatIsIncludedComingSoon } from './translations'; import type { Product } from './types'; /** * Get Jetpack product "Includes" that are coming soon based on the product purchase object. */ export function getJetpackProductWhatIsIncludedComingSoon( product: Product ) { const jetpackProductsIncludesInfo = getJetpackProductsWhatIsIncludedComingSoon(); return jetpackProductsIncludesInfo[ product.product_slug ]; }