mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-09-11 13:17:06 +08:00
9 lines
247 B
TypeScript
9 lines
247 B
TypeScript
import { useWindowSize } from "@/app/hooks/useWindowSize";
|
|
import { MOBILE_MAX_WIDTH } from "@/app/hooks/useListenWinResize";
|
|
|
|
export default function useMobileScreen() {
|
|
const { width } = useWindowSize();
|
|
|
|
return width <= MOBILE_MAX_WIDTH;
|
|
}
|