import React from 'react'; import { ChevronUp, ChevronDown, X } from 'lucide-react'; interface ContextDisplayProps { context: string | null; isContextExpanded: boolean; setIsContextExpanded: (isExpanded: boolean) => void; setContext: (context: string | null) => void; } export default function ContextDisplay({ context, isContextExpanded, setIsContextExpanded, setContext }: ContextDisplayProps) { if (!context) return null; return (
setIsContextExpanded(!isContextExpanded)} > Context
{isContextExpanded ? ( setIsContextExpanded(false)} /> ) : ( setIsContextExpanded(true)} /> )} setContext(null)} />
{isContextExpanded && (