import { X } from "lucide-react"; import type { PeqEqUi } from "../constants"; type BandParamDialogMeta = { title: string; hint: string; placeholder: string; inputMode: "decimal" | "numeric" | "text"; rangeMessages: { invalid: string; outOfRange: string }; }; export function BandParamDialog({ open, meta, input, onInputChange, onConfirm, onClose, eqUi, }: { open: boolean; meta: BandParamDialogMeta | null; input: string; onInputChange: (v: string) => void; onConfirm: () => void; onClose: () => void; eqUi: PeqEqUi; }) { if (!open || !meta) return null; return (
e.stopPropagation()} >

{meta.title}

{meta.hint}

onInputChange(e.target.value)} onKeyDown={(e) => { if (e.key === "Enter") { e.preventDefault(); onConfirm(); } }} inputMode={meta.inputMode} placeholder={meta.placeholder} className="h-11 w-full rounded-[10px] border border-white/12 bg-[#15171b] px-3 text-[15px] text-white/90 outline-none placeholder:text-white/30 focus:border-[#00FFF6]/40" autoFocus />
); }