import { X } from "lucide-react"; import type { PeqEqUi } from "../types"; import { PEQ_PRESET_NAME_MAX_LENGTH } from "../eqConstants"; import { clampPeqPresetName } from "../peqPresetName"; import { PeqPresetNameLengthHint } from "./PeqPresetNameLengthHint"; export function SaveBDialog({ open, presetName, onNameChange, onSave, onClose, eqUi, }: { open: boolean; presetName: string; onNameChange: (v: string) => void; onSave: () => void; onClose: () => void; eqUi: PeqEqUi; }) { if (!open) return null; return (
e.stopPropagation()} >

{eqUi.saveBTitle}

onNameChange(clampPeqPresetName(e.target.value))} maxLength={PEQ_PRESET_NAME_MAX_LENGTH} 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-white/15" autoFocus />
); }