import React from 'react'
import { Badge } from '@/components/ui/badge'
import { Ic } from '@/icons'
import type { FactorStatus } from '../types'
import { useTranslation } from '@/i18n'
interface Props {
status: FactorStatus
className?: string
}
export function BillingStatusBadge({ status, className }: Props) {
const { t } = useTranslation()
switch (status) {
case 'awaiting_payment':
return (
{t('billing.statusAwaiting')}
)
case 'pending':
return (
{t('billing.statusPending')}
)
case 'approved':
return (
{t('billing.statusApproved')}
)
case 'rejected':
return (
{t('billing.statusRejected')}
)
case 'expired':
return (
{t('billing.statusExpired')}
)
default:
return (
{status}
)
}
}