10 lines
407 B
TypeScript
10 lines
407 B
TypeScript
"use client";
|
|
|
|
import type { CommentImage } from "@/lib/comments/types";
|
|
|
|
export function CommentImageView({ image, alt, className }: { image: CommentImage; alt: string; className?: string }) {
|
|
// Comment attachments load directly from the configured S3 public CDN.
|
|
// eslint-disable-next-line @next/next/no-img-element
|
|
return <img src={image.url} alt={alt} loading="lazy" className={className} />;
|
|
}
|