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) 324 B
import { camelOrSnakeSlug } from './camel-or-snake-slug'; import { PLAN_CHARGEBACK } from './constants'; import type { WithSnakeCaseSlug, WithCamelCaseSlug } from './types'; export function isChargeback( product: WithSnakeCaseSlug | WithCamelCaseSlug ): boolean { return camelOrSnakeSlug( product ) === PLAN_CHARGEBACK; }