import { Flag } from "lucide-react"; import type { Agent } from "@paperclipai/shared"; import { Button } from "@/components/ui/button"; interface IssueAssignedBacklogNoticeProps { issueStatus: string; assigneeAgent: Agent | null; assigneeUserId?: string | null; onResume?: () => void; resuming?: boolean; } export function IssueAssignedBacklogNotice({ issueStatus, assigneeAgent, assigneeUserId, onResume, resuming, }: IssueAssignedBacklogNoticeProps) { if (issueStatus !== "backlog") return null; if (!assigneeAgent && !assigneeUserId) return null; const assigneeLabel = assigneeAgent?.name ?? "the assignee"; return (
Parked —{" "} {assigneeLabel} will not be asked to work on this until status changes to To do or In progress.
{assigneeAgent ? (Comments still notify the assignee for questions or triage. Leave this parked only if the work is intentionally on hold.
) : null} {onResume ? (