"use client"; import { motion } from "framer-motion"; import { Loader2, ImageOff } from "lucide-react"; import { useTheme } from "@/app/lib/ThemeContext"; import ImageGallery, { type GalleryImage } from "@/app/components/ui/ImageGallery"; interface Props { loading: boolean; images: GalleryImage[]; emptyMessage: string; } export default function EventGallerySection({ loading, images, emptyMessage }: Props) { const { isDark } = useTheme(); const card = { background: isDark ? "rgba(255,255,255,0.06)" : "#FFFFFF", border: `1px solid ${isDark ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.07)"}`, boxShadow: isDark ? "0 4px 24px rgba(0,0,0,0.35)" : "0 2px 16px rgba(0,0,0,0.07)", borderRadius: "1.25rem", }; const text = isDark ? "#FFFFFF" : "#1a1a1a"; const textMuted = isDark ? "rgba(255,255,255,0.6)" : "#6B6B6B"; if (loading) { return (
Nothing here yet
{emptyMessage}
{images.length} Available