import { TGateway } from '@/types/deposit.types';
import { create } from 'zustand';

export type DepositState = {
  gateway: TGateway | null;
  selectGateway: (gateway: TGateway | null) => void;
  reset: () => void;
};

export const useDepositStore = create<DepositState>((set) => ({
  gateway: null,
  selectGateway: (gateway) => set({ gateway }),
  reset: () => set({ gateway: null }),
}));
