"use client" import { useRouter } from "next/navigation" import { Check } from "@phosphor-icons/react" import { BoothPanel } from "@/features/booth/BoothPanel" import { Button } from "@/components/ui/button" import { LAYOUTS, type LayoutId } from "@/lib/layouts" import { cn } from "@/lib/utils" import { useBoothStore } from "@/stores/booth" /* FR-02: pilih layout menentukan jumlah foto dan rasio crop di langkah kamera. */ const DESCRIPTIONS: Record = { "strip-4": "Empat pose, strip klasik 2 x 6 inci.", "strip-3": "Tiga pose, slot lebih tinggi untuk badan penuh.", "grid-2x2": "Empat pose, lembar 4R penuh.", } const CHOICES: LayoutId[] = ["strip-4", "strip-3", "grid-2x2"] export default function LayoutStepPage() { const router = useRouter() const layoutId = useBoothStore((state) => state.layoutId) const setLayout = useBoothStore((state) => state.setLayout) return ( Pilih layout
{CHOICES.map((id) => { const layout = LAYOUTS[id] const selected = layoutId === id return (