const brainImg = "https://raw.githubusercontent.com/Komalpreet2809/Soma-Assets/master/Brain_nobg.png"; import './CognitiveBrainScene.css'; /** * PHASE TO REGION MAPPING */ const REGION_MAP = { perception: 'sensory', sensory: 'sensory', attention: 'thalamus', routing: 'thalamus', prediction: 'prefrontal', working_memory: 'prefrontal', recall: 'hippocampus', association: 'hippocampus', memory: 'hippocampus', emotion: 'amygdala', reasoning: 'prefrontal', reflection: 'prefrontal', language: 'prefrontal', inhibition: 'hippocampus', // Moved to Temporal for smoother memory filtering flow graph: 'hippocampus', listening: 'sensory', responding: 'prefrontal' }; function CognitiveBrainImageScene({ state = 'idle' }) { const activeRegion = REGION_MAP[state] || null; const isState = (s) => state === s; return (
{/* Layer 1: Brain Core */}
{/* Layer 2: Cognitive Signals (Floating Ambient Labels) */}
Prefrontal Reasoning & Reflection
Parietal Perception & Sensory
Temporal Memory & Association
Subcortical Attention & Routing
Soma Brain {/* State Glow Hubs (Subtle Ambient Backglow) */}
{/* Interaction Particles */}
{/* Interaction Feedback (Particles) */} {(isState('listening') || isState('responding')) &&
}
); } export default CognitiveBrainImageScene;