blob: 61d93acdb91ee227c80acd0ea2b573bcda656285 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import { LICENSE_PLAN } from './constants';
export function inferLicensePlan({ hasSubEpics, hasEpics }) {
if (hasSubEpics) {
return LICENSE_PLAN.ULTIMATE;
} else if (hasEpics) {
return LICENSE_PLAN.PREMIUM;
}
return LICENSE_PLAN.FREE;
}
|