import React from 'react'; import PropTypes from 'prop-types'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { useCopyToClipboard } from '../../../../hooks/useCopyToClipboard'; import Box from '../../../ui/box'; import Button from '../../../ui/button'; import Typography from '../../../ui/typography'; import Tooltip from '../../../ui/tooltip'; import { DISPLAY, TextColor, TypographyVariant, } from '../../../../helpers/constants/design-system'; import { shortenAddress } from '../../../../helpers/utils/util'; const DetectedTokenAddress = ({ tokenAddress }) => { const t = useI18nContext(); const [copied, handleCopy] = useCopyToClipboard(); return ( {`${t('tokenAddress')}:`} {shortenAddress(tokenAddress)} ); }; DetectedTokenAddress.propTypes = { tokenAddress: PropTypes.string, }; export default DetectedTokenAddress;