import { Coin } from '@cosmjs/stargate' import { ChainInfoID, SimpleChainInfoList, TxBroadcastResult } from '@marsprotocol/wallet-connector' import { Button, InfoTitle, TxFee, TxLink } from 'components/common' import { useTranslation } from 'react-i18next' import useStore from 'store' import { TxStatus } from 'types/enums/RedBankAction' import styles from './TxSuccessContent.module.scss' interface Props { title: string response?: TxBroadcastResult | null txFee?: Coin txStatus: TxStatus actions: { label: string; values: string[] }[] handleClose: () => void } export const TxSuccessContent = ({ response, txFee, title, txStatus, actions, handleClose, }: Props) => { const { t } = useTranslation() const chainInfo = useStore((s) => s.chainInfo) const explorerUrl = chainInfo && SimpleChainInfoList[chainInfo.chainId as ChainInfoID].explorer return (