"use client"; import { IconAlertTriangle } from "@tabler/icons-react"; import { useTranslation } from "react-i18next"; import type { TaskPR, WorkflowAttention } from "@/lib/types/github"; import { getWorkflowAttentionForDisplay, isWorkflowApprovalRequired, workflowAttentionReasonKey, } from "./pr-workflow-attention"; export function PRWorkflowAttentionNotice({ pr, attention: suppliedAttention, }: { pr: TaskPR; attention?: WorkflowAttention | null; }) { const { t } = useTranslation(); const attention = getWorkflowAttentionForDisplay(pr, suppliedAttention); if (!attention) return null; return (
); }