import { TWithdrawGateway } from '@/types/withdraw.types';
import { create } from 'zustand';

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

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