MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / renderStatus

Function renderStatus

apps/start/src/components/organization/billing.tsx:76–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 )[0];
75
76 const renderStatus = () => {
77 const meta = getSubscriptionStateMeta(organization.subscriptionState, {
78 endsAt: organization.subscriptionEndsAt,
79 canceledAt: organization.subscriptionCanceledAt,
80 });
81
82 if (!meta.statusLine) {
83 return null;
84 }
85
86 return (
87 <p
88 className={
89 meta.statusLine.tone === 'destructive' ? 'text-destructive' : undefined
90 }
91 >
92 {meta.statusLine.text}
93 </p>
94 );
95 };
96
97 useEffect(() => {
98 if (success) {

Callers 1

BillingFunction · 0.85

Calls 1

getSubscriptionStateMetaFunction · 0.90

Tested by

no test coverage detected