diff --git a/ui/src/components/IssueRow.tsx b/ui/src/components/IssueRow.tsx index 7f6eaada..d3bcfcff 100644 --- a/ui/src/components/IssueRow.tsx +++ b/ui/src/components/IssueRow.tsx @@ -1,6 +1,7 @@ import type { ReactNode } from "react"; import type { Issue } from "@paperclipai/shared"; import { Link } from "@/lib/router"; +import { X } from "lucide-react"; import { cn } from "../lib/utils"; import { StatusIcon } from "./StatusIcon"; @@ -17,6 +18,8 @@ interface IssueRowProps { trailingMeta?: ReactNode; unreadState?: UnreadState | null; onMarkRead?: () => void; + onArchive?: () => void; + archiveDisabled?: boolean; className?: string; } @@ -31,6 +34,8 @@ export function IssueRow({ trailingMeta, unreadState = null, onMarkRead, + onArchive, + archiveDisabled, className, }: IssueRowProps) { const issuePathId = issue.identifier ?? issue.id; @@ -113,6 +118,26 @@ export function IssueRow({ )} /> + ) : onArchive ? ( + ) : (