Files
kandev/apps/web/components/task/chat/context-items/plan-comment-item.tsx
T
José Almeida 8f2fe7a8e6 feat(web): add agent message comments (#1835)
* feat(web): add agent message comments

* fix(web): harden agent message comments

* fix(web): address message comment review findings

* fix(web): allow comments on legacy agent messages

* fix(web): address latest message comment review

* fix(web): address follow-up message comment review

* fix(web): address remaining message comment review

* fix(web): keep failed mobile comments open

* fix(web): preserve selections over message comments
2026-07-21 13:32:19 +01:00

22 lines
485 B
TypeScript

"use client";
import { memo } from "react";
import type { PlanCommentContextItem } from "@/lib/types/context";
import { SelectionCommentItem } from "./selection-comment-item";
export const PlanCommentItem = memo(function PlanCommentItem({
item,
}: {
item: PlanCommentContextItem;
}) {
return (
<SelectionCommentItem
kind="plan-comment"
label={item.label}
comments={item.comments}
onClick={item.onOpen}
onRemove={item.onRemove}
/>
);
});