/** SettingsPanelContent — ADR-119 extracted from usePanelContent.tsx */ import React from 'react'; import { Loader2, Bot, Users, User, Settings, Save, Trash2, AlertCircle, Inbox } from 'lucide-react'; import { cn } from '@/shared/utils/cn'; import { ContextSettingsSection } from '../../components/ChatPanels/ContextSettingsSection'; import { TasksSourceInlineSelector } from '../../../TasksSourceInlineSelector'; import { FilesSourceInlineSelector } from '../../../FilesSourceInlineSelector'; import type { TasksSourceConfig } from '../../../AIChatPanel.types'; import type { PanelContentDeps } from './PanelContentTypes'; const DEFAULT_QUICK_EMOJIS = ['\uD83D\uDC4D', '\u2764\uFE0F', '\uD83D\uDE02', '\uD83D\uDD25', '\uD83D\uDCAF', '\uD83D\uDE4F', '\uD83D\uDE0D', '\uD83D\uDE2E']; export function SettingsPanelContent(d: PanelContentDeps) { return (
{(['ai', 'people', 'widget'] as const).map(tab => { const icons = { ai: Bot, people: Users, widget: Settings }; const labels = { ai: 'AI', people: 'Люди', widget: 'Виджет' }; const colors = { ai: 'purple', people: 'blue', widget: 'primary' }; const Icon = icons[tab]; const colorVar = colors[tab] === 'primary' ? 'var(--color-primary-500)' : `rgb(var(--color-${colors[tab]}-500))`; return ( ); })}
{d.settingsTab === 'ai' && (
{d.currentAgent?.icon || '\uD83E\uDD16'}
AI Агент
{d.currentAgent && ( <>