src/pages/transactions/_components/DfTx/DfTxICXCloseOffer.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { DfTx, ICXCloseOffer } from "@defichain/jellyfish-transaction";
import { AdaptiveList } from "@components/commons/AdaptiveList";
import { TxIdLink } from "@components/commons/link/TxIdLink";
import { DfTxHeader } from "./DfTxHeader";

interface DfTxICXCloseOfferProps {
  dftx: DfTx<ICXCloseOffer>;
}

export function DfTxICXCloseOffer(props: DfTxICXCloseOfferProps): JSX.Element {
  return (
    <div>
      <DfTxHeader name="ICX Close Offer" />
      <div className="mt-5 flex flex-col space-y-6 items-start lg:flex-row lg:space-x-8 lg:space-y-0">
        <AdaptiveList>
          <AdaptiveList.Row name="Offer Tx">
            <TxIdLink
              txid={props.dftx.data.offerTx}
              testId="DfTxICXCloseOffer.OfferTx"
              className="break-all"
            />
          </AdaptiveList.Row>
        </AdaptiveList>
      </div>
    </div>
  );
}