import React, { useState } from 'react'; import { motion } from 'framer-motion'; import { useTranslation } from 'react-i18next'; import { X, Layers, Check, Ungroup, Trash2 } from 'lucide-react'; const COLORS = { purple: '#a855f7', blue: '#3b82f6', green: '#22c55e', yellow: '#eab308', pink: '#ec4899', orange: '#f97316', white: '#78716c', }; const GroupSettingsModal = ({ node, childCount, onClose, onSave, onUngroup, onDelete }) => { const { t } = useTranslation(); const [label, setLabel] = useState(node.data.label || ''); const [description, setDescription] = useState(node.data.description || ''); const [color, setColor] = useState(node.data.color || 'purple'); const [confirmDelete, setConfirmDelete] = useState(false); return (
e.stopPropagation()} className="bg-surface-container-lowest border-4 border-primary rounded-3xl p-7 max-w-md w-full shadow-[8px_8px_0px_0px_var(--color-primary)] relative flex flex-col gap-5" >

{t('groups.settings', 'Group settings')}