import { Image } from "@/generated/prisma"; import clsx from "clsx"; import NextImage from "next/image"; import Link from "next/link"; export default function ImageList({ images, gallerySlug, albumSlug }: { images: Image[], gallerySlug: string, albumSlug: string }) { return (

Images

{images ? images.map((img) => (
{img.fileKey ? ( ) : (
No cover image
)}

{img.imageName}

)) : "There are no images here!"}
); }