PlanUsage
import { PlanUsage, PLAN_TERMS, FREE_TERMS, CREDITS_TERMS } from '@hanzo/ui/product'
No examples yet.
Types
export interface PlanUsageProps {
limits: Limits
/** The plan's display name; the slug made readable when absent. */
plan?: string
notice?: LimitNotice | null
/** Takes an action; without one only the pages are offered. */
onAction?: (action: LimitAction) => void
/** Writes the org's continue-with-credits choice; the switch shows only when the limits carry it. */
onCredits?: (on: boolean) => Promise<void>
/** Where the org's credits balance is read. */
creditsHref?: string
/** Where credits are added. */
addCreditsHref?: string
now?: number
}Exports
PlanUsagePLAN_TERMSFREE_TERMSCREDITS_TERMStype PlanUsageProps