@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
15 lines • 601 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getValueOfRadioButton = void 0;
const positions_1 = require("../../../types/positions/positions");
const getValueOfRadioButton = (position, inputValues) => {
if (position === positions_1.POSITIONS.RIGHT) {
return inputValues?.rightInputValue;
}
else if (position === positions_1.POSITIONS.LEFT) {
return inputValues?.leftInputValue;
}
return inputValues?.centerInputValue;
};
exports.getValueOfRadioButton = getValueOfRadioButton;
//# sourceMappingURL=getValueOfRadioButton.js.map