import React from 'react'; import { WebIntelligenceResult } from '@/types.ts'; import { useTranslation } from '@/hooks/useI18n.tsx'; import IntelligenceModule from '@/components/organization/IntelligenceModule.tsx'; interface WebIntelTabProps { webIntelResult: WebIntelligenceResult | null; isFetchingWebIntel: boolean; webIntelError: string | null; handleFetchWebIntelligence: () => void; } const WebIntelTab: React.FC = ({ webIntelResult, isFetchingWebIntel, webIntelError, handleFetchWebIntelligence, }) => { const { t } = useTranslation(); return ( {webIntelResult && (
{webIntelResult.text &&

{webIntelResult.text}

} {Array.isArray(webIntelResult.sources) && webIntelResult.sources.length > 0 && (
{t('mapSidebar.details.webIntelSources')}
)}
)}
); }; export default React.memo(WebIntelTab);