2022-07-06 19:31:07 +00:00
|
|
|
import {
|
|
|
|
FREE_PLAN_PRICE,
|
|
|
|
FREE_PLAN_PRODUCT_ID,
|
|
|
|
PREMIUM_PLAN_PRICE,
|
|
|
|
PREMIUM_PLAN_PRODUCT_ID,
|
|
|
|
PRO_PLAN_PRICE,
|
2022-09-08 00:38:37 +00:00
|
|
|
PREMIUM_NEW_PLAN_PRICE,
|
|
|
|
IS_PREMIUM_NEW_PLAN,
|
2022-07-06 19:31:07 +00:00
|
|
|
PRO_PLAN_PRODUCT_ID,
|
|
|
|
} from "./constants";
|
2022-03-09 22:56:05 +00:00
|
|
|
|
2022-09-08 00:38:37 +00:00
|
|
|
export function getPremiumPlanMode() {
|
|
|
|
return IS_PREMIUM_NEW_PLAN ? "payment" : "subscription";
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getPremiumPlanPriceValue() {
|
|
|
|
return IS_PREMIUM_NEW_PLAN ? "$499" : "$29/mo";
|
2022-03-09 22:56:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getPremiumPlanPrice(): string {
|
2022-09-08 00:38:37 +00:00
|
|
|
return IS_PREMIUM_NEW_PLAN ? PREMIUM_NEW_PLAN_PRICE : PREMIUM_PLAN_PRICE;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getPerSeatProPlanPrice(): string {
|
|
|
|
return PRO_PLAN_PRICE;
|
2022-03-09 22:56:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getProPlanPrice(): string {
|
|
|
|
return PRO_PLAN_PRICE;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getFreePlanPrice(): string {
|
|
|
|
return FREE_PLAN_PRICE;
|
|
|
|
}
|
2022-07-06 19:31:07 +00:00
|
|
|
|
|
|
|
export function getProPlanProductId(): string {
|
|
|
|
return PRO_PLAN_PRODUCT_ID;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getPremiumPlanProductId(): string {
|
|
|
|
return PREMIUM_PLAN_PRODUCT_ID;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getFreePlanProductId(): string {
|
|
|
|
return FREE_PLAN_PRODUCT_ID;
|
|
|
|
}
|