UNPKG

@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) 320 B
import { camelOrSnakeSlug } from './camel-or-snake-slug'; import { isSecurityT1Plan } from './main'; import type { WithCamelCaseSlug, WithSnakeCaseSlug } from './types'; export function isSecurityT1( product: WithCamelCaseSlug | WithSnakeCaseSlug ): boolean { return isSecurityT1Plan( camelOrSnakeSlug( product ) ); }