@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
12 lines (10 loc) • 578 B
text/typescript
import { isGoogleWorkspaceProductSlug } from './is-google-workspace-product-slug';
import { isGSuiteProductSlug } from './is-gsuite-product-slug';
/**
* Determines whether the specified product slug refers to either G Suite or Google Workspace.
* @param {string} productSlug - slug of the product
* @returns {boolean} true if the slug refers to G Suite or Google Workspace, false otherwise
*/
export function isGSuiteOrGoogleWorkspaceProductSlug( productSlug: string ): boolean {
return isGSuiteProductSlug( productSlug ) || isGoogleWorkspaceProductSlug( productSlug );
}