import { useButlerInsights } from '../../hooks/useButlerInsights'; import { InsightsSection } from './InsightsSection'; import { ProposalsSection } from './ProposalsSection'; import { MemorySection } from './MemorySection'; interface ButlerPanelProps { agentId: string | undefined; } export function ButlerPanel({ agentId }: ButlerPanelProps) { const { painPoints, proposals, loading, error, refresh } = useButlerInsights(agentId); if (!agentId) { return (

请先选择一个 Agent

); } return (
{error && (
{error}
)} {loading && (
)} {/* Insights section */}

我最近在关注

{/* Proposals section */}

我提出的方案

{/* Memory section */}

我记得关于您

); }