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 Tooltip from '../../../ui/tooltip'; import { DISPLAY, TextColor, TextVariant, } from '../../../../helpers/constants/design-system'; import { shortenAddress } from '../../../../helpers/utils/util'; import { Text } from '../../../component-library'; const DetectedTokenAddress = ({ tokenAddress }) => { const t = useI18nContext(); const [copied, handleCopy] = useCopyToClipboard(); return ( {`${t('tokenAddress')}:`} {shortenAddress(tokenAddress)} ); }; DetectedTokenAddress.propTypes = { tokenAddress: PropTypes.string, }; export default DetectedTokenAddress;