Hook to get the active breakpoint
Object containing the breakpoints, MUST be in ascending order
// 1-767px: mobile, 768-1023px: tablet, 1024px+: desktopconst breakpoint = useActiveBreakpoint({ mobile: '0px', tablet: '768px', desktop: '1024px' }); Copy
// 1-767px: mobile, 768-1023px: tablet, 1024px+: desktopconst breakpoint = useActiveBreakpoint({ mobile: '0px', tablet: '768px', desktop: '1024px' });
Hook to get the active breakpoint