mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
32 lines
614 B
TypeScript
32 lines
614 B
TypeScript
import { Center } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { Image } from 'toolkit/chakra/image';
|
|
|
|
interface Props {
|
|
src: string;
|
|
}
|
|
|
|
const BlobDataImage = ({ src }: Props) => {
|
|
return (
|
|
<Center
|
|
bgColor={{ _light: 'blackAlpha.50', _dark: 'whiteAlpha.50' }}
|
|
p={ 4 }
|
|
minH="200px"
|
|
w="100%"
|
|
borderRadius="md"
|
|
>
|
|
<Image
|
|
src={ src }
|
|
objectFit="contain"
|
|
maxW="100%"
|
|
maxH="100%"
|
|
objectPosition="center"
|
|
alt="Blob image representation"
|
|
/>
|
|
</Center>
|
|
);
|
|
};
|
|
|
|
export default React.memo(BlobDataImage);
|