import { Box, Row, Icon } from '@tlon/indigo-react'; import { useExploreTxUrl } from 'lib/explorer'; import LayerIndicator from './LayerIndicator'; import './PendingTransaction.scss'; interface Props { title: string; nextRoll?: string; hash?: string; layer: 1 | 2; } const PendingTransactionComponent: React.FC = ({ title, nextRoll, hash, layer, }) => { const txHash = useExploreTxUrl(hash); return ( {title} {hash ? ( Etherscan ) : ( {nextRoll} )} ); }; export default PendingTransactionComponent;