UNPKG

@automattic/calypso-products

Version:

This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.

16 lines 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isGoogleWorkspaceProductSlug = isGoogleWorkspaceProductSlug; const constants_1 = require("./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 */ function isGoogleWorkspaceProductSlug(productSlug) { return [ constants_1.GOOGLE_WORKSPACE_BUSINESS_STARTER_MONTHLY, constants_1.GOOGLE_WORKSPACE_BUSINESS_STARTER_YEARLY, ].includes(productSlug); } //# sourceMappingURL=is-google-workspace-product-slug.js.map