import { Article, ArrowsClockwise as RefreshCw, Cube, GitBranch, ListChecks, Palette, Robot as Bot, ShieldCheck, type IconProps } from '@phosphor-icons/react' import type { ComponentType } from 'react' import type { TranslationKey } from '../lib/i18n' import { Button } from './ui/button' import { SETTINGS_SECTION_IDS } from './settingsSectionIds' interface SettingsBodyNavProps { t: (key: TranslationKey) => string } interface SettingsNavItem { id: string label: string Icon: ComponentType } export function SettingsBodyNav({ t }: SettingsBodyNavProps) { const items: SettingsNavItem[] = [ { id: SETTINGS_SECTION_IDS.sync, label: t('settings.sync.title'), Icon: RefreshCw }, { id: SETTINGS_SECTION_IDS.workspaces, label: t('settings.workspaces.title'), Icon: Cube }, { id: SETTINGS_SECTION_IDS.autogit, label: t('settings.autogit.title'), Icon: GitBranch }, { id: SETTINGS_SECTION_IDS.appearance, label: t('settings.appearance.title'), Icon: Palette }, { id: SETTINGS_SECTION_IDS.content, label: t('settings.vaultContent.title'), Icon: Article }, { id: SETTINGS_SECTION_IDS.ai, label: t('settings.aiAgents.title'), Icon: Bot }, { id: SETTINGS_SECTION_IDS.workflow, label: t('settings.workflow.title'), Icon: ListChecks }, { id: SETTINGS_SECTION_IDS.privacy, label: t('settings.privacy.title'), Icon: ShieldCheck }, ] return (
{items.map((item) => ( ))}
) }