"use client" import { Album, Category, Gallery, Tag } from "@/generated/prisma" import { CalendarDaysIcon, ImagesIcon, LayersIcon, QuoteIcon, TagIcon } from "lucide-react" import Link from "next/link" type Props = { album: Album & { gallery: Gallery | null } | null categories: Category[] tags: Tag[] creationDate?: Date | null creationYear?: number | null creationMonth?: number | null altText?: string | null description?: string | null } export default function ImageMetadataBox({ album, categories, tags, creationDate, creationYear, creationMonth, altText, description }: Props) { const creationLabel = creationDate ? new Date(creationDate).toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric", }) : creationYear && creationMonth ? `${creationMonth.toString().padStart(2, "0")}/${creationYear}` : null return (