import { TStepAction } from '@types' ; import { TUseStateReducerFactory } from '@utils' ; import { MembershipPurchaseState , MembershipSimpleTxFormFull } from './types' ; const MembershipPurchaseFactory = ( { state , setState } ) => { const handleUserInputFormSubmit = ( payload ) => { const { membershipSelected , account } = payload ; setState ( { ... state , account , membershipSelected } ) ; } ; return { handleUserInputFormSubmit , purchaseMembershipFlowState : state } ; } ; export default MembershipPurchaseFactory ;