"use client"; import { IconGitPullRequest } from "@tabler/icons-react"; import { AutomationIndicatorDots, getPRAggregateStatusColor, getTaskPRAutomationSummary, PRTaskIcon, type TaskPRInfo, } from "@/components/github/pr-task-icon"; import { MRTaskIcon } from "@/components/gitlab/mr-task-icon"; import { cn } from "@/lib/utils"; /** Shows PR icon from store (real data) or from prInfo prop (prototype/mock). */ function TaskPRIcon({ taskId, prInfo }: { taskId?: string; prInfo?: TaskPRInfo }) { if (taskId) return ; if (!prInfo) return null; const color = getPRAggregateStatusColor(prInfo.aggregateState ?? prInfo.state); const automation = getTaskPRAutomationSummary([], prInfo); return ( ); } /** * PR badge (store or prInfo fallback) and MR badge as siblings, PR first. The * MR branch needs its own taskId guard because MRTaskIcon reads task-scoped * store data and cannot render without a task identity. */ export function TaskContributionIcons({ taskId, prInfo, }: { taskId?: string; prInfo?: TaskPRInfo; }) { return ( <> {taskId ? : null} ); }