import { create } from 'zustand'; type State = { phone: string | null; userType: string | null; }; type Actions = { savedPhone: (phone: string | null) => void; savedUserType: (userType: string | null) => void; }; const userInfoStore = create((set) => ({ phone: null, savedPhone: (phone: string | null) => set(() => ({ phone })), userType: null, savedUserType: (userType: string | null) => set(() => ({ userType })), })); export default userInfoStore;