Sidebar UI, server stuff

This commit is contained in:
2025-10-18 14:10:06 +02:00
parent d878721098
commit 99af75ea25
5 changed files with 61 additions and 67 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
import { Dispatch, RefObject, SetStateAction } from "react";
import { StringMap } from "./typeUtils";
import { UserProfile } from "@/hooks/get-user";
import { Message } from "./types";
import { Message, Server } from "./types";
import { ClientSettings } from "./settings";
export type SetState<T> = Dispatch<SetStateAction<T>>;
@@ -13,6 +13,9 @@ export default interface App {
clientSettings: ClientSettings;
setClientSettings: SetState<ClientSettings>;
servers: StringMap<Server>;
setServers: SetState<StringMap<Server>>;
profiles: StringMap<UserProfile | null>;
setProfiles: SetState<StringMap<UserProfile | null>>;