import { AnimatePresence, motion } from 'framer-motion' import { ChevronRight } from 'lucide-react' import { Badge, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui' import { formatCurrency } from '@/lib/helpers' interface BillingChangeBadgeProps { beforePrice?: number afterPrice?: number show: boolean | undefined tooltip?: string className?: string free?: boolean } export const BillingChangeBadge = ({ beforePrice, afterPrice, show, tooltip, className, free, }: BillingChangeBadgeProps) => { return ( {beforePrice !== undefined && afterPrice !== undefined && show && (
{formatCurrency(beforePrice)} {`${formatCurrency(afterPrice)}/month`}
{tooltip !== undefined && {tooltip}}
)}
) }