feat: impl accounts and channels

This commit is contained in:
2026-09-06 18:17:42 +08:00
parent aa9999a940
commit 1ccee1414c
70 changed files with 9879 additions and 31 deletions
+15
View File
@@ -0,0 +1,15 @@
import * as React from "react";
const MOBILE_BREAKPOINT = 768;
export function useIsMobile() {
return React.useSyncExternalStore(
(callback) => {
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
mql.addEventListener("change", callback);
return () => mql.removeEventListener("change", callback);
},
() => window.innerWidth < MOBILE_BREAKPOINT,
() => false
);
}