feat(web): sprint1 ui core with global toasts and improved chat layout
Some checks failed
CI / test (push) Failing after 19s

This commit is contained in:
2026-03-08 10:35:21 +03:00
parent 1119cc65b8
commit a77516cfea
6 changed files with 81 additions and 32 deletions

14
web/src/store/uiStore.ts Normal file
View 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 })
}));