Files
explore/ui/blob/BlobDataImage.tsx
2025-03-11 13:11:26 +01:00

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);