import { create } from 'zustand'; interface ErrorState { isErrorShown: boolean; setErrorShown: (shown: boolean) => void; } export const useErrorStore = create((set) => ({ isErrorShown: false, setErrorShown: (shown) => set({ isErrorShown: shown }) }));