using DiplomovaPrace.Web.Admin.Store.PaymentStateUseCase.Actions;
using Fluxor;

namespace DiplomovaPrace.Web.Admin.Store.PaymentStateUseCase
{
	public static class Reducers
	{
		[ReducerMethod]
		public static PaymentState ReceivePaymentStatesAction(PaymentState state, ReceivePaymentStatesAction action)
		{
			return new PaymentState(
				isLoading: false,
				paymentStates: action.PaymentStates);
		}
	}
}
