import { IconChevronLeft, IconChevronRight } from "@tabler/icons-react"; import type { ReactNode } from "react"; import { Logo } from "@/components/site/Logo"; import { splitGallery } from "@/lib/gallery"; import { useI18n } from "@/lib/i18n"; type GalleryProps = { photos: string[]; cinemaName: string; }; type GallerySlotProps = { photo: string | null; alt: string; /** เนื้อหาที่แสดงเมื่อยังไม่มีรูป — ใช้โลโก้ AlterFlixHub แทนข้อความ */ placeholder: ReactNode; className: string; }; function GallerySlot({ photo, alt, placeholder, className }: GallerySlotProps) { if (!photo) { return (