| 4 | import { marked } from 'marked'; |
| 5 | |
| 6 | interface HistoryPanelProps { |
| 7 | onRecordSelect: (record: HistoryRecord) => void; |
| 8 | className?: string; |
| 9 | refreshTrigger?: number; // 新增:用于触发刷新的prop |
| 10 | } |
| 11 | |
| 12 | const HistoryPanel: React.FC<HistoryPanelProps> = ({ onRecordSelect, className = '', refreshTrigger }) => { |
| 13 | const [groupedHistory, setGroupedHistory] = useState<{ [date: string]: HistoryRecord[] }>({}); |
nothing calls this directly
no outgoing calls
no test coverage detected