import React from 'react';
import { Image } from 'antd';

interface ImageViewerProps {
  src: string;
  alt?: string;
  className?: string;
  onClick?: () => void;
}

const ImageViewer: React.FC<ImageViewerProps> = ({
  src,
  alt,
  className,
  onClick,
}) => {
  return (
    <div className={`image-viewer ${className}`}>
      <Image src={src} alt={alt} onClick={onClick} preview={false} />
    </div>
  );
};

export default ImageViewer;
