import React from 'react'; import PropTypes from 'prop-types'; import Box from '../../../ui/box'; import IconCopy from '../../../ui/icon/icon-copy'; import IconBlockExplorer from '../../../ui/icon/icon-block-explorer'; import Button from '../../../ui/button/button.component'; import Tooltip from '../../../ui/tooltip/tooltip'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import Identicon from '../../../ui/identicon/identicon.component'; import { ellipsify } from '../../../../pages/send/send.utils'; import Popover from '../../../ui/popover'; import Typography from '../../../ui/typography'; import { FONT_WEIGHT, TYPOGRAPHY, DISPLAY, COLORS, JUSTIFY_CONTENT, SIZES, BORDER_STYLE, } from '../../../../helpers/constants/design-system'; export default function ContractDetailsModal({ onClose, address, tokenName }) { const t = useI18nContext(); return ( {t('contractTitle')} {t('contractDescription')} {t('contractToken')} {tokenName || ellipsify(address)} {tokenName && ( {ellipsify(address)} )} {t('contractRequestingSpendingCap')} {tokenName || ellipsify(address)} {tokenName && ( {ellipsify(address)} )} ); } ContractDetailsModal.propTypes = { onClose: PropTypes.func, address: PropTypes.string, tokenName: PropTypes.string, };