import React, { useContext, useState } from 'react'; import PropTypes from 'prop-types'; import { I18nContext } from '../../../contexts/i18n'; import { Menu, MenuItem } from '../../../components/ui/menu'; const AssetOptions = ({ onRemove, onClickBlockExplorer, onViewAccountDetails, onViewTokenDetails, tokenSymbol, isNativeAsset, isEthNetwork, }) => { const t = useContext(I18nContext); const [assetOptionsButtonElement, setAssetOptionsButtonElement] = useState(null); const [assetOptionsOpen, setAssetOptionsOpen] = useState(false); return ( <>