import React from 'react'; import Styles from './styles.module.less'; const Oauth = (props) => { const { loading, hasError, errorMessage } = props.data; const { t, retry, returnToIndex } = props.methods; const tErrMsg = t(errorMessage); return (
{loading ? (<>

{t('oauth.loading.title')}

{t('oauth.loadingMessage')}

) : hasError ? (<>

{t('oauth.error.title')}

{tErrMsg}

) : (<>

{t('oauth.success.title')}

{t('oauth.successMessage')}

)}
); }; export default Oauth;