import './method.scss'; import React, { useState } from 'react'; import Icon from '../../../components/Icon/icon'; import ImageIcon from '../../../components/ImageIcon/imageIcon'; import i18n from '../../../i18n'; interface Props { backCB: () => void; } const Method: React.FC = (props) => { const { backCB } = props; const [isReload] = useState(false); const renderReload = () => { return isReload ? ( <>
{i18n.t('method.failed')}
{i18n.t('method.reload')}
) : null; }; return (
backCB()} className="method-close-icon" src="iconHalfsheetBack" />

{i18n.t('method.selectmethod')}

{renderReload()}
  • {i18n.t('method.balance')}
    {i18n.t('method.availamt')}
  • {/* */}
    {i18n.t('method.deferamt')}
    {i18n.t('method.availbal')}
    {/*
    */}
  • {/* */}
    {i18n.t('method.cc')}
    **** 9999
    {i18n.t('method.authenticate')}
    {/*
    */}
  • {/* */}
    {i18n.t('method.yahoocard')}
    **** 9999
    {i18n.t('method.authenticate')}
    {/*
    */}
); }; Method.defaultProps = { backCB: () => {}, }; export default Method;