dry-wash-pl/src/__data__/features.ts
2025-02-16 11:45:42 +03:00

15 lines
384 B
TypeScript

import { getFeatures } from "@brojs/cli";
const features = getFeatures('dry-wash');
export const FEATURE = {
orderViewStatusPolling: {
isOn: Boolean(features?.['order-view-status-polling']),
getValue: () => {
const interval = parseInt(features?.['order-view-status-polling']?.value);
if (!Number.isNaN(interval)) {
return interval;
}
}
}
};