teableio/teable

View on GitHub
packages/ui-lib/src/base/file/preview/image/ImagePreview.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import type { IFileItemInner } from '../FilePreviewContext';

interface IImagePreviewProps extends IFileItemInner {}

export const ImagePreview = (props: IImagePreviewProps) => {
  const { src, name } = props;
  return <img className="max-h-full max-w-full" src={src} alt={name} />;
};