import React from 'react'; import { Plus } from 'lucide-react'; // Thèmes couleur selon le type const THEME = { groupe: { bg: 'bg-blue-50', border: 'border-blue-200', iconBg: 'bg-blue-100', icon: 'text-blue-600', title: 'text-blue-800', desc: 'text-blue-600', button: 'bg-blue-500 text-white hover:bg-blue-600', buttonText: 'text-blue-700', buttonHover: 'hover:bg-blue-100', }, formulaire: { bg: 'bg-emerald-50', border: 'border-emerald-200', iconBg: 'bg-emerald-100', icon: 'text-emerald-600', title: 'text-emerald-800', desc: 'text-emerald-600', button: 'bg-emerald-500 text-white hover:bg-emerald-600', buttonText: 'text-emerald-700', buttonHover: 'hover:bg-emerald-100', }, parent: { bg: 'bg-orange-50', border: 'border-orange-200', iconBg: 'bg-orange-100', icon: 'text-orange-500', title: 'text-orange-700', desc: 'text-orange-600', button: 'bg-orange-500 text-white hover:bg-orange-600', buttonText: 'text-orange-700', buttonHover: 'hover:bg-orange-100', }, }; const SectionHeaderDocument = ({ icon: Icon, title, description, button = false, buttonOpeningModal = false, onClick = null, className = '', type = 'groupe', // 'groupe', 'formulaire', 'parent' }) => { const theme = THEME[type] || THEME.groupe; return (
{description}
)}