import React from 'react'; import { motion } from 'framer-motion'; import { CircleDashed } from 'lucide-react'; import { extractToolNameFromStream } from '@/components/thread/tool-views/xml-parser'; import { getToolIcon, getUserFriendlyToolName } from '@/components/thread/utils'; interface ShowToolStreamProps { content: string; } export const ShowToolStream: React.FC = ({ content }) => { const toolName = extractToolNameFromStream(content); if (!toolName) { return (
Processing...
); } const IconComponent = getToolIcon(toolName); const displayName = getUserFriendlyToolName(toolName); return (
{displayName} running...
); };