mirror of https://github.com/portainer/portainer
16 lines
429 B
TypeScript
16 lines
429 B
TypeScript
import { FeatureId } from '@/portainer/feature-flags/enums';
|
|
import { isLimitedToBE } from '@/portainer/feature-flags/feature-flags.service';
|
|
|
|
const BE_URL = 'https://www.portainer.io/business-upsell?from=';
|
|
|
|
export function getFeatureDetails(featureId?: FeatureId) {
|
|
if (!featureId) {
|
|
return {};
|
|
}
|
|
const url = `${BE_URL}${featureId}`;
|
|
|
|
const limitedToBE = isLimitedToBE(featureId);
|
|
|
|
return { url, limitedToBE };
|
|
}
|