feat: use faster senja

This commit is contained in:
Rotimi Best
2024-04-21 00:28:53 +01:00
parent a43ea5e55a
commit 00e7352b49
25 changed files with 96 additions and 88 deletions
+7
View File
@@ -0,0 +1,7 @@
import { PLANS_BY_FEATURE } from './constants';
export function hasFeature(featureName: string, userPlan: string) {
const features = PLANS_BY_FEATURE[userPlan];
return features.includes(featureName);
}