import { create } from 'zustand'; type NotifyState = { hasNew: boolean; setHasNew: (hasNew: boolean) => void; }; const useNotificationStore = create((set) => ({ hasNew: false, setHasNew: (hasNew: boolean) => set({ hasNew }), toggleNew: () => set((state) => ({ hasNew: !state.hasNew })), })); export default useNotificationStore;