@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
9 lines • 449 B
JavaScript
import { DeviceBreakpointsType } from '../../../types/breakpoints/breakpoints';
export const isActive = (state, currentActivePoint, checkActivePoint) => {
return state && currentActivePoint === checkActivePoint;
};
// Do not show tooltip on grabbing if desktops
export const isTooltipVisible = (tooltip, pressed, device) => {
return !!tooltip && (device !== DeviceBreakpointsType.DESKTOP || !pressed);
};
//# sourceMappingURL=ui.utils.js.map