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 Typography from '../../../components/ui/typography'; import ActionableMessage from '../../../components/ui/actionable-message/actionable-message'; import { TYPOGRAPHY, FONT_WEIGHT, ALIGN_ITEMS, 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, };