import "./index.css"; import { motion } from "framer-motion"; import { ChevronDown } from "lucide-react"; import { useState } from "react"; interface PlanProps { toolCallId: string; executedPlans: string[]; rejectedPlans: string[]; remainingPlans: string[]; } export default function Plan(props: PlanProps) { const [isExpanded, setIsExpanded] = useState(false); return (

Code Plan

Remaining Plans

{props.remainingPlans.map((step, index) => (

{index + 1}. {step}

))}

Executed Plans

{props.executedPlans.map((step, index) => (

{step}

))}

Rejected Plans

{props.rejectedPlans.map((step, index) => (

{step}

))}
setIsExpanded(!isExpanded)} animate={{ rotate: isExpanded ? 180 : 0 }} transition={{ duration: 0.3, ease: [0.4, 0, 0.2, 1] }} >
); }