import React, { useState } from 'react'; import SettingsSidebar from './SettingsSidebar'; import GeneralSettings from './sections/GeneralSettings'; import BehaviorSettings from './sections/BehaviorSettings'; import TemplatesSettings from './sections/TemplatesSettings'; import ChordGuideSettings from './sections/ChordGuideSettings'; export type SettingsSection = 'general' | 'behavior' | 'templates' | 'chord_guide'; interface SettingsPanelProps { onClose: () => void; } const SettingsPanel: React.FC = ({ onClose }) => { const [activeSection, setActiveSection] = useState('general'); const renderActiveSection = () => { switch (activeSection) { case 'general': return ; case 'behavior': return ; case 'templates': return ; case 'chord_guide': return ; default: return ; } }; return (
{renderActiveSection()}
); }; export default SettingsPanel;