feat(web): sprint1 ui core with global toasts and improved chat layout
Some checks failed
CI / test (push) Failing after 19s
Some checks failed
CI / test (push) Failing after 19s
This commit is contained in:
14
web/src/store/uiStore.ts
Normal file
14
web/src/store/uiStore.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface UiState {
|
||||
toastMessage: string | null;
|
||||
showToast: (message: string) => void;
|
||||
clearToast: () => void;
|
||||
}
|
||||
|
||||
export const useUiStore = create<UiState>((set) => ({
|
||||
toastMessage: null,
|
||||
showToast: (message) => set({ toastMessage: message }),
|
||||
clearToast: () => set({ toastMessage: null })
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user