import { useState } from 'react'; import './CognitiveTrace.css'; const PHASE_ICONS = { perception: '๐', recall: '๐', association: '๐', synthesis: '๐งช', reasoning: '๐ง ', error: 'โ ๏ธ' }; function CognitiveTrace({ traces }) { const [expandedIndex, setExpandedIndex] = useState(null); if (!traces || traces.length === 0) { return (
{JSON.stringify(trace.data, null, 2)}