@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
10 lines (8 loc) • 389 B
text/typescript
import { camelOrSnakeSlug } from './camel-or-snake-slug';
import { GOOGLE_WORKSPACE_BUSINESS_STARTER_MONTHLY } from './constants';
import type { WithCamelCaseSlug, WithSnakeCaseSlug } from './types';
export function isGoogleWorkspaceMonthly(
product: WithCamelCaseSlug | WithSnakeCaseSlug
): boolean {
return GOOGLE_WORKSPACE_BUSINESS_STARTER_MONTHLY === camelOrSnakeSlug( product );
}