import { TemplateAPI } from "@/types/chatstore"; import { Tr } from "@/translate"; import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; import { Button } from "./ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { SaveIcon } from "lucide-react"; interface Props { temps: TemplateAPI[]; setTemps: (temps: TemplateAPI[]) => void; label: string; endpoint: string; APIkey: string; } export function SetAPIsTemplate({ endpoint, APIkey, temps: temps, setTemps: setTemps, label, }: Props) { return ( Save {label} as Template Once saved, you can easily access your templates from the dropdown menu.
); }