import React from 'react'; import { CreditCard, Download } from 'lucide-react'; import { Button, Panel, StatusBadge, UsageMeter } from '../../ui'; import { useBilling } from '../../../hooks/usePlanUsage'; import { useSetIsUpgradeModalOpen } from '../../../contexts/UIContext'; import { manageSubscription, updatePaymentMethod } from '../../../featureStubs'; const BillingSettingsSection: React.FC = () => { const billing = useBilling(); const openUpgrade = useSetIsUpgradeModalOpen(); const isPro = billing.plan === 'pro'; const { paymentMethod, invoices } = billing; return (
{isPro ? `Renews ${billing.renewsAt}.` : `Usage resets ${billing.renewsAt}.`}
{billing.credits.toLocaleString()} credits remaining
{paymentMethod ? `${paymentMethod.brand} •••• ${paymentMethod.last4} · Exp ${paymentMethod.expMonth}/${paymentMethod.expYear}` : 'No payment method on file'}
Billing isn’t live yet — this previews the upcoming plans, credits & invoices UI.