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