8f2fe7a8e6
* 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
22 lines
485 B
TypeScript
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}
|
|
/>
|
|
);
|
|
});
|