import { useTranslation } from "react-i18next"; import { cn } from "@/lib/utils"; import type { UIContextCompaction } from "@/lib/types"; interface ContextCompactionNoticeProps { compaction: UIContextCompaction; } export function ContextCompactionNotice({ compaction }: ContextCompactionNoticeProps) { const { t } = useTranslation(); const title = t(compaction.reason ? `thread.compaction.reasons.${compaction.reason}.${compaction.phase}` : `thread.compaction.${compaction.phase}`); return (
{title}