Sid Gifari File Manager
🏠 Root
/
home
/
genremedia08
/
musicjukebox.overlookedtracks.com
/
common
/
resources
/
client
/
billing
/
billing-page
/
Editing: billing-page.tsx
import {useBillingUser} from './use-billing-user'; import {CancelledPlanPanel} from './panels/cancelled-plan-panel'; import {ActivePlanPanel} from './panels/active-plan-panel'; import {PaymentMethodPanel} from './panels/payment-method-panel'; import {InvoiceHistoryPanel} from './panels/invoice-history-panel'; export function BillingPage() { const {subscription} = useBillingUser(); if (!subscription?.price || !subscription?.product) return null; const planPanel = subscription.ends_at ? ( <CancelledPlanPanel /> ) : ( <ActivePlanPanel /> ); return ( <div> {planPanel} <PaymentMethodPanel /> <InvoiceHistoryPanel /> </div> ); }
Save
Cancel