import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import styles from './settings-modal.module.css'; import AccountSettings from './account-settings'; import CryptoAddressSetting from './crypto-address-setting'; import CryptoWalletsSetting from './crypto-wallets-setting'; import InterfaceSettings from './interface-settings'; const SettingsModal = () => { const { t } = useTranslation(); const navigate = useNavigate(); const closeModal = () => { navigate(-1); }; const [showInterfaceSettings, setShowInterfaceSettings] = useState(false); const [showAccountSettings, setShowAccountSettings] = useState(false); const [showCryptoAddressSetting, setShowCryptoAddressSetting] = useState(false); const [showCryptoWalletSettings, setShowCryptoWalletSettings] = useState(false); const [expandAll, setExpandAll] = useState(false); const handleExpandAll = () => { const newExpandState = !expandAll; setExpandAll(newExpandState); setShowInterfaceSettings(newExpandState); setShowAccountSettings(newExpandState); setShowCryptoAddressSetting(newExpandState); setShowCryptoWalletSettings(newExpandState); }; return ( <>