mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
import { Box, chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
import Jazzicon, { jsNumberForAddress } from 'react-jazzicon';
|
|
|
|
const AddressIcon = ({ hash, className }: {hash: string; className?: string}) => {
|
|
return (
|
|
<Box className={ className } width="24px" display="inline-flex">
|
|
<Jazzicon diameter={ 24 } seed={ jsNumberForAddress(hash) }/>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default chakra(AddressIcon);
|