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>
	);
}
