@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
13 lines • 633 B
JavaScript
import { GOOGLE_WORKSPACE_BUSINESS_STARTER_MONTHLY, GOOGLE_WORKSPACE_BUSINESS_STARTER_YEARLY, } from './constants';
/**
* Determines whether the specified product slug is for Google Workspace Business Starter.
* @param {string} productSlug - slug of the product
* @returns {boolean} true if the slug refers to Google Workspace Business Starter, false otherwise
*/
export function isGoogleWorkspaceProductSlug(productSlug) {
return [
GOOGLE_WORKSPACE_BUSINESS_STARTER_MONTHLY,
GOOGLE_WORKSPACE_BUSINESS_STARTER_YEARLY,
].includes(productSlug);
}
//# sourceMappingURL=is-google-workspace-product-slug.js.map