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