feat: seperate chat page

This commit is contained in:
butterfly
2024-04-12 10:57:57 +08:00
parent 67acc38a1f
commit 0a8e5d6734
56 changed files with 3868 additions and 25 deletions

View File

@@ -0,0 +1,12 @@
import { useLayoutEffect } from "react";
import { useWindowSize } from "../utils";
export const MOBILE_MAX_WIDTH = 600;
export default function useMobileScreen() {
const { width } = useWindowSize();
const isMobile = width <= MOBILE_MAX_WIDTH;
return isMobile;
}