chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:58:18 +08:00
commit 6d5d58c1a9
18293 changed files with 3502153 additions and 0 deletions
@@ -0,0 +1,37 @@
"use client";
import React from "react";
import { CopilotKit } from "@copilotkit/react-core";
import { CopilotSidebar } from "@copilotkit/react-core/v2";
import { useShowcaseHooks } from "../../../hooks/use-showcase-hooks";
import { useShowcaseSuggestions } from "../../../hooks/use-showcase-suggestions";
import { SalesDashboard } from "../../sales-dashboard";
interface ToolBasedDashboardProps {
agentId: string;
}
function DashboardContent({ agentId }: ToolBasedDashboardProps) {
useShowcaseHooks();
useShowcaseSuggestions();
return (
<div className="min-h-screen w-full flex items-center justify-center">
<SalesDashboard agentId={agentId} />
<CopilotSidebar
defaultOpen={true}
labels={{
modalHeaderTitle: "Sales Dashboard Assistant",
}}
/>
</div>
);
}
export function ToolBasedDashboard({ agentId }: ToolBasedDashboardProps) {
return (
<CopilotKit runtimeUrl="/api/copilotkit" agent={agentId}>
<DashboardContent agentId={agentId} />
</CopilotKit>
);
}