useIsMobile
Detects if the screen width is below a defined mobile breakpoint.
Usage
The useIsMobile
hook determines if the screen width is below a defined mobile breakpoint. It listens for changes in the viewport size and returns a boolean indicating whether the current device is considered mobile.