import React from 'react'; import { Globe, Shield, Clock, Layers } from 'lucide-react'; export default function TransparencyPanel({ tierStats, factCheck, extraction, inputType }) { if (!tierStats && !factCheck && !extraction) return null; const getTierLabel = (key) => { const labels = { serper: { label: 'Serper.dev (Google Proxy)', color: 'text-green-400' }, tavily: { label: 'Tavily (Deep Research)', color: 'text-sky-400' }, you_com: { label: 'You.com (AI Search)', color: 'text-teal-400' }, newsdata: { label: 'NewsData.io', color: 'text-purple-400' }, rss: { label: 'Google News RSS', color: 'text-gray-400' }, google: { label: 'Google CSE', color: 'text-gray-500' }, duckduckgo: { label: 'DuckDuckGo', color: 'text-orange-400' }, }; return labels[key] || { label: key, color: 'text-gray-500' }; }; return (

Transparency Log

{factCheck && factCheck.total > 0 && (

Fact-Check Hit: {factCheck.total} records found

)} {tierStats && (

Data Retrieval Layers

{Object.entries(tierStats).map(([key, value]) => { const tier = getTierLabel(key); return (
{tier.label}
{value}
); })}
)}
); }