import { useForm } from '../../context/FormContext'; import { getTemplateData } from '../../data/templateData'; import * as Icons from 'lucide-react'; import { User, BookOpen, FileText, PlusCircle } from 'lucide-react'; function getIcon(name, size = 18) { const Icon = Icons[name]; return Icon ? : null; } const SPECIAL_SECTIONS = [ { id: '_header', label: 'Patient Info', icon: }, { id: '_abbreviations', label: 'Abbreviations', icon: }, { id: '_smart_phrases', label: 'Smart Phrases', icon: }, ]; export default function Sidebar({ activeSection, onSectionClick, onAddSection, isOpen }) { const { formState, getFilledCount } = useForm(); const TEMPLATE_SECTIONS = getTemplateData()?.sections || []; return ( ); }