antoncoding/monarch

View on GitHub
src/components/TxHashDisplay.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';

type TxHashDisplayProps = {
  hash: string | undefined;
};

export function TxHashDisplay({ hash }: TxHashDisplayProps) {
  return (
    <div className="py-2 font-mono text-xs hover:underline">
      {hash ? `Tx Hash: ${hash.slice(0, 6)}...${hash.slice(-4)}` : ''}
    </div>
  );
}