()
| 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) { |
no test coverage detected