@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
8 lines (6 loc) • 378 B
text/typescript
import { isGoogleWorkspaceMonthly } from './is-google-workspace-monthly';
import { isTitanMailMonthly } from './is-titan-mail-monthly';
import type { WithCamelCaseSlug, WithSnakeCaseSlug } from './types';
export function isEmailMonthly( product: WithCamelCaseSlug | WithSnakeCaseSlug ): boolean {
return isGoogleWorkspaceMonthly( product ) || isTitanMailMonthly( product );
}