import { useCallback } from 'react'; import { ClipboardList, X } from 'lucide-react'; import { MarkdownContent } from '@renderer/components/MarkdownContent'; import type { PendingPlanReviewRecord } from '@shared/domain/planReview'; export function PlanReviewBanner({ planReview, onDismiss, }: { planReview: PendingPlanReviewRecord; onDismiss: (planReview: PendingPlanReviewRecord) => void; }) { const handleDismiss = useCallback(() => { onDismiss(planReview); }, [planReview, onDismiss]); return (
{/* Header */}
Plan ready for review Plan mode
{planReview.agentName && (
Agent: {planReview.agentName}
)} {/* Summary */} {planReview.summary && (

{planReview.summary}

)} {/* Plan content (rendered markdown) */} {planReview.planContent && (
)} {/* Guidance */}

Send a follow-up message to proceed — e.g.{' '} "implement the plan",{' '} "adjust step 3", or ask for a different approach.

); }