import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded' import OpenInNew from '@mui/icons-material/OpenInNew' import { Box, Typography } from '@mui/material' import { useTranslation } from 'react-i18next' import { Card } from '../../components/Card/Card.js' import { CardIconButton } from '../../components/Card/CardIconButton.js' import { CardTitle } from '../../components/Card/CardTitle.js' interface TransferIdCardProps { transferId: string txLink?: string } export const TransferIdCard = ({ transferId, txLink }: TransferIdCardProps) => { const { t } = useTranslation() const copyTransferId = async () => { await navigator.clipboard.writeText(transferId) } const openTransferIdInExplorer = () => { window.open(txLink, '_blank') } return ( {t('main.transferId')} {txLink ? ( ) : null} {transferId} ) }