import { create } from 'zustand';

interface ErrorState {
  isErrorShown: boolean;
  setErrorShown: (shown: boolean) => void;
}

export const useErrorStore = create<ErrorState>((set) => ({
  isErrorShown: false,
  setErrorShown: (shown) => set({ isErrorShown: shown })
}));
