import { InfoIcon } from 'lucide-react' import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui' import { type DueTodayBreakdown } from './PlanChangeSummary.utils' import { formatCurrency } from '@/lib/helpers' const TooltipLine = ({ label, amount, isCredit = false, className, }: { label: string amount: number isCredit?: boolean className?: string }) => (
Due today
Credits applied
{creditBalance > 0 ? "Your organization's credit balance is applied to this first payment. Next month is the regular plan price." : `Time you have already paid for on ${currentPlanName ?? 'your current plan'} is credited against this payment.`}
> )}The plan fee is charged upfront. Compute and other usage is billed at the end of each billing cycle.
{breakdown.isTaxEstimateUnavailable && (Tax could not be estimated and may be applied separately.
)}