diff --git a/app/page.tsx b/app/page.tsx
index 8fa811a..ea4b9a4 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -4,6 +4,8 @@ import { useChat } from "@ai-sdk/react";
import ChatInput from "@/components/chat-input";
import type { MarketAgentUIMessage } from "@/agent/market-agent";
import MarketView from "@/components/market-view";
+import CompareView from "@/components/compare-view";
+import PriceHistoryView from "@/components/price-history-view";
import type { MarketUIToolInvocation } from "@/tool/market-tool";
import Image from "next/image";
import { Streamdown } from "streamdown";
@@ -253,6 +255,22 @@ export default function MarketChat() {
/>
);
}
+ case "tool-compare": {
+ const inv = part as { state: string; comparisonData?: string; toolCallId?: string; id?: string };
+ return inv.state === "ready" && inv.comparisonData ? (
+
| Token | +Price | +24h | +Market Cap | +Volume 24h | +
|---|---|---|---|---|
|
+ {token.symbol.toUpperCase()}
+ {token.name}
+ |
+ + {fmt(token.price, vsCurrency)} + | ++ {change.text} + | ++ {fmt(token.marketCap, vsCurrency)} + | ++ {fmt(token.volume24h, vsCurrency)} + | +