"use client" import { Check, Lock } from "@phosphor-icons/react" import { cn } from "@/lib/utils" import type { Shot } from "@/stores/booth" /* DESIGN-SYSTEM ยง9: kisi dua kolom, slot terisi bergaris dengan lencana centang violet, slot kosong bergaris putus-putus dengan nomor. FR-07: tiap slot terisi adalah tombol ulang foto tertentu. M8 (SE-04): slot yang jadi milik pihak lain di strip estafet dikunci. Slot terkunci bukan tombol (tidak ada jalur ulang), dan lencananya gembok, bukan centang, supaya bedanya tidak hanya warna. */ export function ShotTray({ shots, slotRatio, busy, onRetake, lockedSlots = [], }: { shots: (Shot | null)[] slotRatio: number busy: boolean onRetake: (index: number) => void lockedSlots?: number[] }) { return (
{shots.map((shot, index) => shot === null ? (
{lockedSlots.includes(index) ? ( ) : ( {index + 1} )}
) : lockedSlots.includes(index) ? (
{/* DataURL hasil kamera, bukan aset: next/image tidak dipakai di sini. */} {/* eslint-disable-next-line @next/next/no-img-element */}
) : ( ) )}
) }