import Identicon from '@polkadot/react-identicon'; import { Modal, Button } from '@gear-js/ui'; import { ModalProps } from '@/entities/modal'; import styles from './TransactionModal.module.scss'; type Props = ModalProps & { fee: string; name: string; addressTo?: string; addressFrom: string; onAbort?: () => void; onConfirm: () => void; }; const TransactionModal = (props: Props) => { const { fee, name, addressTo, addressFrom, onClose, onAbort, onConfirm } = props; const handleClose = () => { if (onAbort) { onAbort(); } onClose(); }; const handleConfirm = () => { onConfirm(); onClose(); }; return (

Sending transaction {name}

Fees of {fee} will be applied to the submission

From: {addressFrom}

{addressTo && (

To: {addressTo}

)}
); }; export { TransactionModal };