// @flow import React, { Suspense } from 'react'; import { Modal } from 'modal/modal'; import Button from 'component/button'; import UserPhoneVerify from 'component/userPhoneVerify'; import { withRouter } from 'react-router-dom'; const LazyUserPhoneNew = React.lazy(() => import(/* webpackChunkName: "userPhoneNew" */ 'component/userPhoneNew') ); type Props = { phone: ?number, user: { phone_number: ?number, }, closeModal: () => void, history: { push: string => void }, }; class ModalPhoneCollection extends React.PureComponent { getTitle() { const { user, phone } = this.props; if (!user.phone_number && !phone) { return __('Enter Your Phone Number'); } return __('Enter The Verification Code'); } renderInner() { const { closeModal, phone, user, history } = this.props; const cancelButton =