mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-18 09:16:38 +08:00
10 lines
218 B
TypeScript
10 lines
218 B
TypeScript
import { useWindowSize } from "@/app/hooks/useWindowSize";
|
|
|
|
export const MOBILE_MAX_WIDTH = 768;
|
|
|
|
export default function useMobileScreen() {
|
|
const { width } = useWindowSize();
|
|
|
|
return width <= MOBILE_MAX_WIDTH;
|
|
}
|