"use client"; import { IconAlertTriangle } from "@tabler/icons-react"; import { Button } from "@kandev/ui/button"; import { useTranslation } from "react-i18next"; import type { PlanCommentMigrationStatus } from "@/lib/state/slices/session/types"; type PlanCommentMigrationNoticeProps = { status: PlanCommentMigrationStatus; needsAttention: boolean; retry: () => void; }; export function PlanCommentMigrationNotice({ status, needsAttention, retry, }: PlanCommentMigrationNoticeProps) { const { t } = useTranslation("task"); if (!needsAttention) return null; const isFailed = status === "failed"; const message = isFailed ? t("planCommentMigrationFailed") : t("planCommentMigrationNeedsPlan"); return (