'use client'; import CopyButton from '@/components/ui/CopyButton'; import { truncateHash } from '@/lib/hooks'; import { useTranslation } from 'react-i18next'; interface ChainBlock { label: string; hash: string; isCurrent?: boolean; } interface ChainVisualizationProps { prevHash: string; currentHash: string; operationId: string; } function Block({ label, hash, isCurrent }: ChainBlock) { return (
{label}
{truncateHash(hash, 8)}
); } function Arrow() { return (
); } export default function ChainVisualization({ prevHash, currentHash, operationId, }: ChainVisualizationProps) { const { t } = useTranslation(); return (

{t('chain.title')}

{t('chain.next')}
{t('chain.pending')}
{t('chain.chainBlock')} {t('chain.currentOperation')} {t('chain.pending')}
); }