added onClick events for marker-cluster

This commit is contained in:
PxlLoewe
2025-04-29 12:32:02 -07:00
parent 0d7f0ad2b8
commit 8041c83d4d
10 changed files with 83 additions and 69 deletions

View File

@@ -3,6 +3,8 @@ import { ChatMessage } from "@repo/db";
import { socket } from "dispatch/socket";
interface ChatStore {
reportTabOpen: boolean;
setReportTabOpen: (open: boolean) => void;
ownId: null | string;
selectedChat: string | null;
chatOpen: boolean;
@@ -20,6 +22,8 @@ interface ChatStore {
}
export const useChatStore = create<ChatStore>((set, get) => ({
reportTabOpen: false,
setReportTabOpen: (open: boolean) => set({ reportTabOpen: open }),
ownId: null,
chatOpen: false,
selectedChat: null,