@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
11 lines (9 loc) • 457 B
text/typescript
import { GSUITE_BASIC_SLUG, GSUITE_BUSINESS_SLUG } from './constants';
/**
* Determines whether the specified product slug is for G Suite Basic or Business.
* @param {string} productSlug - slug of the product
* @returns {boolean} true if the slug refers to G Suite Basic or Business, false otherwise
*/
export function isGSuiteProductSlug( productSlug: string ): boolean {
return [ GSUITE_BASIC_SLUG, GSUITE_BUSINESS_SLUG ].includes( productSlug );
}