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

Function getSubscriptionStatusColor

admin/src/utils/display.ts:167–180  ·  view source on GitHub ↗
(status: string)

Source from the content-addressed store, hash-verified

165}
166
167function getSubscriptionStatusColor(status: string): string {
168 switch (status) {
169 case 'active':
170 return chalk.green(status);
171 case 'trialing':
172 return chalk.blue(status);
173 case 'canceled':
174 return chalk.red(status);
175 case 'past_due':
176 return chalk.yellow(status);
177 default:
178 return chalk.gray(status);
179 }
180}
181
182function getRoleBadge(role: string): string {
183 switch (role) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected