initial public release.

This commit is contained in:
Xiaohan-Tian
2025-08-11 18:37:21 -07:00
commit de51967b49
186 changed files with 32322 additions and 0 deletions
@@ -0,0 +1,50 @@
import React from 'react';
import { FaTimes } from 'react-icons/fa';
import type { SettingsSection } from './SettingsPanel';
interface SettingsSidebarProps {
activeSection: SettingsSection;
onSectionChange: (section: SettingsSection) => void;
onClose: () => void;
}
const SettingsSidebar: React.FC<SettingsSidebarProps> = ({
activeSection,
onSectionChange,
onClose
}) => {
const sections = [
{ id: 'general' as SettingsSection, label: 'General' },
{ id: 'behavior' as SettingsSection, label: 'Behavior' },
{ id: 'templates' as SettingsSection, label: 'Templates' }
];
return (
<div className="settings-sidebar">
<div className="settings-sidebar-header">
<h2>Settings</h2>
<button
className="settings-close-btn"
onClick={onClose}
title="Close Settings"
>
<FaTimes />
</button>
</div>
<nav className="settings-nav">
{sections.map((section) => (
<button
key={section.id}
className={`settings-nav-item ${activeSection === section.id ? 'active' : ''}`}
onClick={() => onSectionChange(section.id)}
>
{section.label}
</button>
))}
</nav>
</div>
);
};
export default SettingsSidebar;