MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / useMobileScreen

Function useMobileScreen

app/utils.ts:146–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144
145export const MOBILE_MAX_WIDTH = 600;
146export function useMobileScreen() {
147 const { width } = useWindowSize();
148
149 return width <= MOBILE_MAX_WIDTH;
150}
151
152export function isFirefox() {
153 return (

Callers 10

TopBannerFunction · 0.90
ScreenFunction · 0.90
ChatActionsFunction · 0.90
_ChatFunction · 0.90
ImagePreviewerFunction · 0.90
useDragSideBarFunction · 0.90
SideBarContainerFunction · 0.90
ChatListFunction · 0.90
SdFunction · 0.90
SideBarFunction · 0.90

Calls 1

useWindowSizeFunction · 0.85

Tested by

no test coverage detected