import React, { useContext } from 'react'; import PropTypes from 'prop-types'; import { I18nContext } from '../../../contexts/i18n'; import UrlIcon from '../../../components/ui/url-icon'; import Popover from '../../../components/ui/popover'; import Button from '../../../components/ui/button'; import Box from '../../../components/ui/box'; import { Text } from '../../../components/component-library'; import ActionableMessage from '../../../components/ui/actionable-message/actionable-message'; import { TextVariant, FONT_WEIGHT, AlignItems, DISPLAY, } from '../../../helpers/constants/design-system'; export default function ImportToken({ onImportTokenCloseClick, onImportTokenClick, setIsImportTokenModalOpen, tokenForImport, }) { const t = useContext(I18nContext); const ImportTokenModalFooter = ( <> ); return ( setIsImportTokenModalOpen(false)} footer={ImportTokenModalFooter} > {tokenForImport.name || ''} {t('contract')}: {tokenForImport.address || ''} ); } ImportToken.propTypes = { onImportTokenCloseClick: PropTypes.func, onImportTokenClick: PropTypes.func, setIsImportTokenModalOpen: PropTypes.func, tokenForImport: PropTypes.object, };