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

17 lines 783 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useActiveBreakpoints = void 0; const breakpoints_1 = require("../../types/breakpoints/breakpoints"); const useMediaDevice_1 = require("./useMediaDevice"); const useActiveBreakpoints = () => { const device = (0, useMediaDevice_1.useMediaDevice)(); return { isMobile: device === breakpoints_1.DeviceBreakpointsType.MOBILE, isTablet: device === breakpoints_1.DeviceBreakpointsType.TABLET, isDesktop: device === breakpoints_1.DeviceBreakpointsType.DESKTOP, isLargeDesktop: device === breakpoints_1.DeviceBreakpointsType.LARGE_DESKTOP, device, }; }; exports.useActiveBreakpoints = useActiveBreakpoints; //# sourceMappingURL=useActiveBreakpoints.js.map