Updated structure

This commit is contained in:
2026-01-09 19:56:44 +01:00
parent 6a7ea0cd8d
commit 5c4526e578
11 changed files with 197 additions and 169 deletions
+2 -1
View File
@@ -9,9 +9,10 @@ import Cookies from "js-cookie";
import { toast } from "sonner";
import { getProfileById } from "@/actions/get-profile";
import { getServerById } from "@/actions/get-server";
import { NodeClient } from "@/lib/node";
export default function useApp(): App {
const node = useRef<WebSocket | null>(null);
const node = useRef<NodeClient | null>(null);
const [profiles, setProfiles] = useState<StringMap<UserProfile | null>>({});
const [sidebarOpen, setSidebarOpen] = useState(false);
const profile = useUser();