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

namespace DiplomovaPrace.Web.Admin.Store.PaymentTypeUseCase
{
	public static class Reducers
	{
		[ReducerMethod]
		public static PaymentTypeState ReceivePaymentStatesAction(PaymentTypeState state, ReceivePaymentTypesAction action)
		{
			return new PaymentTypeState(
				isLoading: false,
				paymentTypes: action.PaymentTypes);
		}
	}
}
