14 lines
342 B
TypeScript
14 lines
342 B
TypeScript
import type { TEstimateSystemKeys } from "@plane/types";
|
|
import { EEstimateSystem } from "@plane/types";
|
|
|
|
export const isEstimateSystemEnabled = (key: TEstimateSystemKeys) => {
|
|
switch (key) {
|
|
case EEstimateSystem.POINTS:
|
|
return true;
|
|
case EEstimateSystem.CATEGORIES:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
};
|