Outlook_Addin_LLM/node_modules/@fluentui/react-spinbutton/lib-commonjs/utils/getBound.js

22 lines
478 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "getBound", {
enumerable: true,
get: function() {
return getBound;
}
});
const getBound = (value, min, max)=>{
if (min !== undefined && value === min) {
if (max === min) {
return 'both';
}
return 'min';
} else if (max !== undefined && value === max) {
return 'max';
}
return 'none';
};