))}
);
if (projectsUsed.length > 1) {
return (
You can't specify a project for this segment because it is used
in multiple projects:
{projectList}
);
}
if (availableProjects.length === 1) {
return (
You can't specify a project other than{' '}
{availableProjects[0].name} for this segment
because it is used here:
{projectList}
);
}
return null;
};
const formatStrategyNameParens = (strategy: IFeatureStrategy): string => {
if (!strategy.strategyName) {
return '';
}
return `(${formatStrategyName(strategy.strategyName)})`;
};