feat: Convert helpers to use JS files

This commit is contained in:
Faruk AYDIN
2024-01-04 19:55:41 +01:00
parent 8819ddefa7
commit 85141812d9
48 changed files with 259 additions and 384 deletions

View File

@@ -0,0 +1,29 @@
import appConfig from '../../config/app';
const testPlans = [
{
name: '10k - monthly',
limit: '10,000',
quota: 10000,
price: '€20',
productId: '47384',
},
];
const prodPlans = [
{
name: '10k - monthly',
limit: '10,000',
quota: 10000,
price: '€20',
productId: '826658',
},
];
const plans = appConfig.isProd ? prodPlans : testPlans;
export function getPlanById(id) {
return plans.find((plan) => plan.productId === id);
}
export default plans;