return (
<Module {...CheckoutDeliveryOptions} ref={checkoutErrorRef}>
{viewState.isLoading && waiting}
{viewState.isError && alert}
{viewState.isShowList && deliveryOptions && (
<DeliveryOptionList
props={props}
{...deliveryOptions}
listOfLocations={locatonList}
onRadioSelect={handleRadioSelect}
onDropdownSelect={handleDropdownSelect}
selectedDropdownOption={selectedDropdownOption}
selectedRadioButton={selectedRadioButton}
/>
)}
{viewState.isShowSelected && deliveryOptionSelected && <DeliveryOptionSelected {...deliveryOptionSelected} />}
{/* {viewState.isShowSaveButton && saveButton} */}
{viewState.isShowEditButton && editButton}
{viewState.isShowCancelButton && cancelButton}
</Module>
);
};
export default CheckoutDeliveryOptionsView;