mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
17 lines
308 B
TypeScript
17 lines
308 B
TypeScript
import { Tooltip } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
interface Props {
|
|
hash: string;
|
|
}
|
|
|
|
const HashStringShorten = ({ hash }: Props) => {
|
|
return (
|
|
<Tooltip label={ hash }>
|
|
{ hash.slice(0, 4) + '...' + hash.slice(-4) }
|
|
</Tooltip>
|
|
);
|
|
};
|
|
|
|
export default HashStringShorten;
|