Add report Window & reposition Chat WIndow
This commit is contained in:
16
apps/dispatch/app/_store/reportStore.ts
Normal file
16
apps/dispatch/app/_store/reportStore.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface ReportStore {
|
||||
ownId: null | string;
|
||||
reportOpen: boolean;
|
||||
setReportOpen: (open: boolean) => void;
|
||||
setOwnId: (id: string) => void;
|
||||
}
|
||||
|
||||
export const useReportStore = create<ReportStore>((set) => ({
|
||||
ownId: null,
|
||||
reportOpen: false,
|
||||
setReportOpen: (open: boolean) => set({ reportOpen: open }),
|
||||
setOwnId: (id: string) => set({ ownId: id }),
|
||||
}));
|
||||
// TODO: implement logic for reports
|
||||
Reference in New Issue
Block a user