import { create } from 'zustand'; interface UserInfoState { userID: string; currentPrice: number | string; notifySessionID: string; setUserID: (id: string) => void; setCurrentPrice: (price: number | string) => void; setNotifySessionID: (id: string) => void; } const useUserInfoStore = create((set) => ({ userID: '', notifySessionID: '', currentPrice: 0, setUserID: (id: string) => set({ userID: id }), setNotifySessionID: (id: string) => set({ notifySessionID: id }), setCurrentPrice: (price: number | string) => set({ currentPrice: price }) })); export default useUserInfoStore;