mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
- Remove redundant case 'api-keys' from switch (handled by default) - Improve type safety by using SettingsViewId in NavigationItem interface - Simplify onCheckedChange callback in AudioSection - Import NAV_ITEMS from config instead of duplicating locally - Update SettingsNavigation props to use SettingsViewId type 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
827 B
TypeScript
29 lines
827 B
TypeScript
import type { LucideIcon } from "lucide-react";
|
|
import {
|
|
Key,
|
|
Terminal,
|
|
Palette,
|
|
Settings2,
|
|
Volume2,
|
|
FlaskConical,
|
|
Trash2,
|
|
} from "lucide-react";
|
|
import type { SettingsViewId } from "../hooks/use-settings-view";
|
|
|
|
export interface NavigationItem {
|
|
id: SettingsViewId;
|
|
label: string;
|
|
icon: LucideIcon;
|
|
}
|
|
|
|
// Navigation items for the settings side panel
|
|
export const NAV_ITEMS: NavigationItem[] = [
|
|
{ id: "api-keys", label: "API Keys", icon: Key },
|
|
{ id: "claude", label: "Claude", icon: Terminal },
|
|
{ id: "appearance", label: "Appearance", icon: Palette },
|
|
{ id: "keyboard", label: "Keyboard Shortcuts", icon: Settings2 },
|
|
{ id: "audio", label: "Audio", icon: Volume2 },
|
|
{ id: "defaults", label: "Feature Defaults", icon: FlaskConical },
|
|
{ id: "danger", label: "Danger Zone", icon: Trash2 },
|
|
];
|