10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
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;
|
|
}
|