@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) • 306 B
text/typescript
import { isJetpackPlan } from './is-jetpack-plan';
import { isPlan } from './is-plan';
import type { WithSnakeCaseSlug, WithCamelCaseSlug } from './types';
export function isDotComPlan( product: WithSnakeCaseSlug | WithCamelCaseSlug ): boolean {
return isPlan( product ) && ! isJetpackPlan( product );
}