mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 12:23:12 +00:00
12 lines
285 B
TypeScript
12 lines
285 B
TypeScript
import { PlanType } from "@/types/proto/api/v1/subscription_service";
|
|
|
|
export const stringifyPlanType = (planType: PlanType) => {
|
|
if (planType === PlanType.FREE) {
|
|
return "Free";
|
|
} else if (planType === PlanType.PRO) {
|
|
return "Pro";
|
|
} else {
|
|
return "Unknown";
|
|
}
|
|
};
|