WithdrawHeader.jsx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import styles from "./styles.module.scss";
  2. import SvgIcon from "@components/SvgIcon";
  3. import {ReactComponent as Video} from "@assets/singlesvg/video.svg";
  4. import USD from "@assets/lvicon/USD.black.png";
  5. import {numFormatter} from "@utils/helpers";
  6. const i18n=global.i18n;
  7. const WithdrawHeader=({...props})=>{
  8. const route=props.route;
  9. const close=props.close;
  10. const renderHeader=()=>{
  11. let title=route?route.title:"";
  12. return (
  13. <div className={styles.header}>
  14. <div className={styles.hcontent}>
  15. {i18n.t(title)}
  16. </div>
  17. <div className={styles.top}>
  18. <div className={styles.left}>
  19. <button className={styles.close} onClick={()=>{
  20. close();
  21. }}>
  22. <SvgIcon className={styles.arrow} herf={"icon_Arrow"}/>
  23. </button>
  24. </div>
  25. <div className={styles.right}>
  26. <button className={styles.right_btn}>
  27. <SvgIcon className={styles.icon} herf={"icon_Help"}/>
  28. </button>
  29. <button className={styles.right_btn}>
  30. <SvgIcon className={styles.icon} herf={"icon_History"}/>
  31. </button>
  32. </div>
  33. </div>
  34. </div>
  35. )
  36. }
  37. return (
  38. <div id={props.id} className={props.className}>
  39. {renderHeader()}
  40. </div>
  41. )
  42. }
  43. export default WithdrawHeader;