diff --git a/components/dataViews/TransactionInfo/TxMsgFundCommunityPoolDetails.tsx b/components/dataViews/TransactionInfo/TxMsgFundCommunityPoolDetails.tsx new file mode 100644 index 0000000..ce5e1af --- /dev/null +++ b/components/dataViews/TransactionInfo/TxMsgFundCommunityPoolDetails.tsx @@ -0,0 +1,50 @@ +import { MsgFundCommunityPool } from "cosmjs-types/cosmos/distribution/v1beta1/tx"; +import { useChains } from "../../../context/ChainsContext"; +import { printableCoins } from "../../../lib/displayHelpers"; + +interface TxMsgFundCommunityPoolDetailsProps { + readonly msgValue: MsgFundCommunityPool; +} + +const TxMsgFundCommunityPoolDetails = ({ msgValue }: TxMsgFundCommunityPoolDetailsProps) => { + const { chain } = useChains(); + + return ( + <> +
  • +

    MsgFundCommunityPool

    +
  • +
  • + +
    {printableCoins(msgValue.amount, chain) || "None"}
    +
  • + + + ); +}; + +export default TxMsgFundCommunityPoolDetails;