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 woken until status changes to{" "}
todo or{" "}
in_progress.
Comments still wake the assignee for questions or triage. Leave this parked only if the work is intentionally on hold.
) : null} {onResume ? (