import { TxDescription } from "@terra-money/react-base-components" ; import { useCurrentChain } from "../../contexts/ChainsContext" ; import useLCDClient from "../../hooks/useLCD" ; import s from "./Action.module.scss" ; const Action = ( { action } ) => { const { name } = useCurrentChain ( ) ; const { config } = useLCDClient ( ) ; return ( < span className = { s . wrapper } > < TxDescription network = { { ... config , name } } config = { { printCoins : 3 } } > { action } < /TxDescription> < /span>); } ; export default Action ;