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 (