import { Modal } from "@/components/Modal"; type Props = { src: string; title?: string; subtitle?: string; onClose: () => void; }; export function ImageLightbox({ src, title, subtitle, onClose }: Props) { return (
{title || "封面预览"}
{subtitle ?
{subtitle}
: null}
{/* eslint-disable-next-line @next/next/no-img-element */} {title
); }