import { Conversation, Database, Message, Preset } from "types"; import RenderMsg from "components/RenderMsg.tsx"; //TODO: this might be the place to allow editing of presets,,, //TODO: easier to just not allow editing presets lol export default function PresetSelector({ selected, setPreset, conv, db, }: { selected: string; setPreset: (_: string) => void; conv: Conversation; db: Database; }) { //TODO: maybe return DB presets? not really necessary const presets = Object.keys({ ...conv.presets }); return (