import IntelligenceModule from '@/components/organization/IntelligenceModule.tsx'; import WebIntelSourcesList from '@/components/organization/WebIntelSourcesList.tsx'; import { Text } from '@/components/ui/Typography.tsx'; import { Stack } from '@/components/ui/layout'; import { useTranslation } from '@/hooks/useI18n.tsx'; import { WebIntelligenceResult } from '@/types.ts'; import React from 'react'; 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 && ( )} )} ); }; export default React.memo(WebIntelTab);