import { ChatStore, TemplateTools } from "./app"; import { Tr } from "./translate"; interface Props { templateTools: TemplateTools[]; setTemplateTools: (tmps: TemplateTools[]) => void; chatStore: ChatStore; setChatStore: (cs: ChatStore) => void; } export function ListToolsTempaltes({ chatStore, templateTools, setTemplateTools, setChatStore, }: Props) { return (

{Tr(`Saved tools templates`)}


{templateTools.map((t, index) => (
{ chatStore.toolsString = t.toolsString; setChatStore({ ...chatStore }); }} > {t.name}
))}
); }