UNPKG

@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

11 lines 501 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTextOrIcon = void 0; const positions_1 = require("../../../types/positions/positions"); const getTextOrIcon = (position, inputValues, offText, onText) => position === positions_1.POSITIONS.CENTER ? inputValues?.centerInputValue : position === positions_1.POSITIONS.RIGHT ? onText?.content : offText?.content; exports.getTextOrIcon = getTextOrIcon; //# sourceMappingURL=getTextOrIcon.js.map