import { useState } from 'react' import { Button, Field } from '@sims/ui' import { formatINR } from '@sims/domain' const DENOMS = [50000, 20000, 10000, 5000, 2000, 1000, 500, 200, 100] // paise per note/coin /** Shift open with denomination count (09-UX §1.5) — the OG Day-Begin ritual's counter-level sibling. */ export function ShiftOpen(props: { userName: string; onOpen: (floatPaise: number) => void; onBack: () => void }) { const [counts, setCounts] = useState>({}) const total = DENOMS.reduce((a, d) => a + d * (counts[d] ?? 0), 0) return (

Open shift — {props.userName}

{DENOMS.map((d) => ( setCounts((c) => ({ ...c, [d]: Number(e.target.value) }))} /> ))}
Opening float {formatINR(total)}
) }