import { ChevronDownIcon, ChevronUpIcon, TerminalIcon, XIcon, } from "lucide-react" import { AnsiText } from "./ansi-text" import { useDevtoolLocalization } from "./devtool-localization" export interface DevtoolActionOutputProps { error?: boolean expanded: boolean onClose: () => void onExpandedChange: (expanded: boolean) => void output: string } export function DevtoolActionOutput({ error = false, expanded, onClose, onExpandedChange, output, }: DevtoolActionOutputProps) { const ToggleIcon = expanded ? ChevronUpIcon : ChevronDownIcon const { messages } = useDevtoolLocalization() return (
{expanded && (
          {output}
        
)}
) }