import { Loader2 } from 'lucide-react' import { Button } from '../../components/ui' import { useAdminPlans } from './AdminPlansProvider' import { PlanLimitsCard } from './PlanLimitsCard' import { PlanPriceRow } from './PlanPriceRow' import { useTranslation } from 'react-i18next' export function AdminPlansView() { const { plans, isPending, isError, errorMessage, retry } = useAdminPlans() const { t } = useTranslation(['admin', 'common']) return (

{t('plans.title')}

{t('plans.subtitle')}

{isPending ? (
) : null} {isError ? (

{errorMessage}

) : null} {plans ? (

{t('plans.limits.title')}

{t('plans.limits.hint')}

{t('plans.prices.title')}

{t('plans.prices.hint')}

    {plans.prices.map((price) => ( ))}
) : null}
) }