Skip to content

The open alternative to Salesforce, designed for AI.

285 B
Raw Blame
import { INTERNAL_CREDITS_PER_DISPLAY_CREDIT } from 'twenty-shared/constants';

import { UsageUnit } from '~/generated-metadata/graphql';

export const getUsageLimitInputScale = (unit: UsageUnit | null): number =>
  unit === UsageUnit.CREDIT ? INTERNAL_CREDITS_PER_DISPLAY_CREDIT : 1;