export const selectThresholdMax = <T>(
    thresholds: Record<number, T>,
    defaultVal: T
) => {
    const $thresholds = Object.entries(thresholds)