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, onViewEtherscan, onViewAccountDetails, tokenSymbol, isNativeAsset, }) => { const t = useContext(I18nContext); const [assetOptionsButtonElement, setAssetOptionsButtonElement] = useState( null, ); const [assetOptionsOpen, setAssetOptionsOpen] = useState(false); return ( <>