show all saved apis

This commit is contained in:
2024-01-16 17:48:41 +08:00
parent 36f2ce57d5
commit 0eabcc0d0a
2 changed files with 64 additions and 72 deletions

View File

@@ -15,7 +15,18 @@ export function ListToolsTempaltes({
}: Props) {
return (
<div className="break-all opacity-80 p-3 rounded bg-white my-3 text-left dark:text-black">
<h2>{Tr(`Saved tools templates`)}</h2>
<h2>
<span>{Tr(`Saved tools templates`)}</span>
<button
className="mx-2 underline cursor-pointer"
onClick={() => {
chatStore.toolsString = "";
setChatStore({ ...chatStore });
}}
>
{Tr(`Clear`)}
</button>
</h2>
<hr className="my-2" />
<div className="flex flex-wrap">
{templateTools.map((t, index) => (