Fix: build of font end of #466 (#530)

This commit is contained in:
Willem Jiang
2025-08-21 23:25:52 +08:00
committed by GitHub
parent f17e5bd6c8
commit 0a02843666

View File

@@ -9,6 +9,7 @@ import {
ChevronDown,
ChevronRight,
Lightbulb,
Wrench,
} from "lucide-react";
import { useTranslations } from "next-intl";
import React, { useCallback, useMemo, useRef, useState } from "react";
@@ -440,7 +441,7 @@ function PlanCard({
const plan = useMemo<{
title?: string;
thought?: string;
steps?: { title?: string; description?: string }[];
steps?: { title?: string; description?: string; tools?: string[] }[];
}>(() => {
return parseJSON(message.content ?? "", {});
}, [message.content]);
@@ -648,3 +649,18 @@ function PodcastCard({
</Card>
);
}
function ToolsDisplay({ tools }: { tools: string[] }) {
return (
<div className="mt-2 flex flex-wrap gap-1">
{tools.map((tool, index) => (
<span
key={index}
className="rounded-md bg-muted px-2 py-1 text-xs font-mono text-muted-foreground"
>
{tool}
</span>
))}
</div>
);
}