mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
27 lines
504 B
TypeScript
27 lines
504 B
TypeScript
import React from 'react';
|
|
|
|
import { Image } from '@luxfi/ui/image';
|
|
|
|
interface Props {
|
|
src: string;
|
|
}
|
|
|
|
const BlobDataImage = ({ src }: Props) => {
|
|
return (
|
|
<div className="flex items-center justify-center w-full p-4 min-h-[200px] rounded-[md]"
|
|
|
|
>
|
|
<Image
|
|
src={ src }
|
|
objectFit="contain"
|
|
maxW="100%"
|
|
maxH="100%"
|
|
objectPosition="center"
|
|
alt="Blob image representation"
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default React.memo(BlobDataImage);
|