import { cn } from "@/lib/utils";

type ImagePreviewProps = {
  src: string;
  alt: string;
  className?: string;
};

export function ImagePreview({ src, alt, className }: ImagePreviewProps) {
  // Blob and object URLs are not compatible with Next image optimization.
  // eslint-disable-next-line @next/next/no-img-element
  return <img src={src} alt={alt} className={cn("object-contain", className)} />;
}
