import { ILicense , LicenseType } from '../../licensing/common/types' ; function isActiveLicense ( licenseType , license ? ) { return license && license . isActive && license . hasAtLeast ( licenseType ) ; } export function isActivePlatinumLicense ( license ? ) { return isActiveLicense ( 'platinum' , license ) ; } export function isActiveGoldLicense ( license ? ) { return isActiveLicense ( 'gold' , license ) ; }