import React from 'react'; import { Sliders, Settings, Compass, Loader2 } from 'lucide-react'; import { Card } from '../ui/Card'; import { Button } from '../ui/Button'; import { PersonalizationFeatures } from '../../types'; const ARCHETYPES = [ { id: 'shonen_hero', name: 'Shonen Hero' }, { id: 'seinen_mystery', name: 'Seinen Mystery' }, { id: 'cyberpunk', name: 'Cyberpunk Rebel' }, { id: 'tsundere', name: 'Tsundere' }, { id: 'kuudere', name: 'Kuudere' }, { id: 'yandere', name: 'Yandere' }, { id: 'shonen', name: 'Shonen Base' }, { id: 'seinen', name: 'Seinen Base' }, { id: 'mahou_shoujo', name: 'Mahou Shoujo' }, { id: 'isekai', name: 'Isekai' }, { id: 'slice_of_life', name: 'Slice of Life' }, { id: 'mecha', name: 'Mecha Pilot' }, { id: 'horror', name: 'Horror / Creepy' }, { id: 'fantasy', name: 'Fantasy' }, { id: 'romance', name: 'Romance' }, { id: 'psychological', name: 'Psychological' }, { id: 'sports', name: 'Sports Athlete' }, ]; interface SynapticConfigPanelProps { tauPlus: number; setTauPlus: (v: number) => void; tauMinus: number; setTauMinus: (v: number) => void; mode: 'auto' | 'manual'; setMode: (m: 'auto' | 'manual') => void; manualArchetype: string; setManualArchetype: (a: string) => void; intensityMult: number; setIntensityMult: (i: number) => void; features: PersonalizationFeatures; setFeatures: (f: PersonalizationFeatures) => void; handleApplyConfig: () => void; isConfigPending: boolean; } export const SynapticConfigPanel: React.FC = ({ tauPlus, setTauPlus, tauMinus, setTauMinus, mode, setMode, manualArchetype, setManualArchetype, intensityMult, setIntensityMult, features, setFeatures, handleApplyConfig, isConfigPending, }) => { return (
{/* Plasticity Config Card */}

Plasticity Parameters

{tauPlus.toFixed(1)} ms
setTauPlus(parseFloat(e.target.value))} className="w-full accent-red-600 h-1 bg-white/10 rounded-full appearance-none cursor-pointer" />
{tauMinus.toFixed(1)} ms
setTauMinus(parseFloat(e.target.value))} className="w-full accent-red-600 h-1 bg-white/10 rounded-full appearance-none cursor-pointer" />
{/* Archetype Drift Config Card */}

Archetype Drift Override

{/* Mode Switch */}
Drift Mode
{/* Manual Archetype Dropdown */} {mode === 'manual' && (
)} {/* Intensity Multiplier */}
{intensityMult.toFixed(1)}x
setIntensityMult(parseFloat(e.target.value))} className="w-full accent-red-600 h-1 bg-white/10 rounded-full appearance-none cursor-pointer" />
{/* Features Switches */}
Active Override Features
{/* Sync Button */}
); };