mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* beacon deposits start * some fixes * test * counters * conflict fix * fix mock
21 lines
804 B
TypeScript
21 lines
804 B
TypeScript
import { chakra, Text } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { Skeleton } from 'toolkit/chakra/skeleton';
|
|
import { TruncatedTextTooltip } from 'toolkit/components/truncation/TruncatedTextTooltip';
|
|
|
|
import CopyToClipboard from '../CopyToClipboard';
|
|
|
|
const BeaconChainDepositSignature = ({ signature, isLoading }: { signature: string; isLoading: boolean }) => {
|
|
return (
|
|
<Skeleton loading={ isLoading } display="grid" gridTemplateColumns="1fr 24px" overflow="hidden">
|
|
<TruncatedTextTooltip label={ signature }>
|
|
<Text overflow="hidden" textOverflow="ellipsis" whiteSpace="nowrap">{ signature }</Text>
|
|
</TruncatedTextTooltip>
|
|
<CopyToClipboard text={ signature }/>
|
|
</Skeleton>
|
|
);
|
|
};
|
|
|
|
export default React.memo(chakra(BeaconChainDepositSignature));
|