AccountEdit.jsx 856 B

12345678910111213141516171819202122232425262728
  1. import styles from './styles.module.scss';
  2. import BRAccountEdit from "@widgets/WWithdraw/BR/BRAccountEdit";
  3. import MXAccountEdit from "@widgets/WWithdraw/MX/MXAccountEdit";
  4. import RUAccountEdit from "@widgets/WWithdraw/RU/RUAccountEdit";
  5. const AccountEdit=({...props})=>{
  6. const components={
  7. "br":BRAccountEdit,
  8. "mx":MXAccountEdit,
  9. "ru":RUAccountEdit
  10. }
  11. const renderAccountEdit=()=>{
  12. let areaItem=global.getLocalAreaItem();
  13. if (areaItem!=null){
  14. let Comp=components[areaItem.code];
  15. if (Comp!=null){
  16. return <Comp {...props} />
  17. }
  18. }
  19. return (<></>);
  20. }
  21. return (
  22. <div className={styles.container}>
  23. {/*<BRAccountEdit {...props}/>*/}
  24. {renderAccountEdit()}
  25. </div>
  26. )
  27. }
  28. export default AccountEdit;