import { create } from 'zustand';

interface UserInfoState {
    userID: string;
    currentPrice: number | string;
    setUserID: (id: string) => void;
    setCurrentPrice: (price: number | string) => void;
}

const useUserInfoStore = create<UserInfoState>((set) => ({
    userID: '',
    currentPrice: 0,
    setUserID: (id: string) => set({ userID: id }),
    setCurrentPrice: (price: number | string) => set({ currentPrice: price })
}));

export default useUserInfoStore;
