feat: init sproutclaw-web — Go+Gin backend + React frontend
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
15
frontend/src/components/chat/CompactionSummaryBlock.tsx
Normal file
15
frontend/src/components/chat/CompactionSummaryBlock.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import styles from "./CompactionSummaryBlock.module.css";
|
||||
|
||||
interface CompactionSummaryBlockProps {
|
||||
content: string;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
export function CompactionSummaryBlock({ content, label = "上下文已压缩" }: CompactionSummaryBlockProps) {
|
||||
return (
|
||||
<details className={styles.summary}>
|
||||
<summary className={styles.toggle}>{label}</summary>
|
||||
<div className={styles.body}>{content}</div>
|
||||
</details>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user