import { LLM_LIST } from "@/lib/models/llm/llm-list" import { Tables } from "@/supabase/types" import { IconCircleCheckFilled, IconRobotFace } from "@tabler/icons-react" import Image from "next/image" import { FC } from "react" import { ModelIcon } from "../models/model-icon" import { DropdownMenuItem } from "../ui/dropdown-menu" interface QuickSettingOptionProps { contentType: "presets" | "assistants" isSelected: boolean item: Tables<"presets"> | Tables<"assistants"> onSelect: () => void image: string } export const QuickSettingOption: FC = ({ contentType, isSelected, item, onSelect, image }) => { const modelDetails = LLM_LIST.find(model => model.modelId === item.model) return (
{contentType === "presets" ? ( ) : image ? ( Assistant ) : ( )}
{item.name}
{item.description && (
{item.description}
)}
{isSelected ? ( ) : null}
) }