import { AnswerUiView, type AnswerUiBlock } from "@/features/agent"; import { Card, CardContent, CardHeader } from "@/shared/ui/card"; import { FloatingWindow } from "@/shared/ui/floating-window"; import type { InvestigationMapTarget } from "../api/investigation-report"; type Props = { blocks: AnswerUiBlock[]; records: Array>; reviewing: boolean; onLocateTargets?: (targets: InvestigationMapTarget[]) => Promise; }; export function PresentationBusinessResults({ blocks, records, reviewing, onLocateTargets }: Props) { if (!blocks.length && !records.length) return null; return (
{blocks.map((block) => ( onLocateTargets( target.feature_ids.map((feature_id) => ({ source_id: target.layer, feature_id })) ) : undefined } /> ))} {!blocks.length && records.length ? (

调查数据 · {records.length} 条

{() => }
) : null}
); } function PresentationRecordTable({ records }: { records: Array> }) { return ( {records.map((record, index) => ( ))}
调查数据摘要
类型 对象 来源
{String(record.record_type)} {String( record.element_id ?? record.device_id ?? record.action_id ?? record.item ?? `记录 ${index + 1}` )} {String(record.origin)}
); }