import styles from "./styles.module.scss";
import Spring from "@components/Spring";
import React from "react";
import {ReactComponent as SuccessIcon} from "@assets/singlesvg/succss.svg";
const i18n=global.i18n;

const WOrderSuccess = ({close})=>{
    const renderSuccess=()=>{
        return (
            <div className={styles.success}>
                <SuccessIcon className={styles.logo}/>
                <div className={styles.tips}>{i18n.t("deposit.order_info.tips2")}</div>
                <div className={styles.btns_con}>
                    <button className={"button-green"} onClick={()=>{
                        if(close)close();
                    }}>{i18n.t("deposit.order_info.okey")}</button>
                </div>
            </div>
        )
    }
    return (
        <Spring type="slideUp" className={styles.success_con}>
            {renderSuccess()}
        </Spring>
    )
}
export default WOrderSuccess;