// SPDX-License-Identifier: AGPL-3.0-or-later // Copyright (C) 2026 Karim Gabriele Varano import { useState } from 'react' import Icon from './Icon' import { BarToggle, BarCombo } from './BarControls' export default function ConfirmDeleteEbene({ ebene, otherEbenen, onConfirm, onCancel }) { const [target, setTarget] = useState(otherEbenen[0]?.code ?? '_delete') const isDelete = target === '_delete' return (