import { ExternalLink, Globe } from 'lucide-react'; import type { ToolCallView } from '@/lib/types'; interface Result { title: string; url: string; date?: string; excerpt: string; domain?: string } export function WebSearchCard({ call }: { call: ToolCallView }) { const p = call.payload as { query?: string; results?: Result[]; error?: string; mode?: string }; const results = p.results || []; if (!results.length) return
{p.error ? "Le web n'a pas pu être consulté." : 'Aucun résultat pertinent.'}
; return (