/* eslint-disable max-lines */ import { MdAdd } from "react-icons/md"; import Button from "@/lib/components/ui/Button"; import Field from "@/lib/components/ui/Field"; import { Modal } from "@/lib/components/ui/Modal"; import { models, paidModels } from "@/lib/context/BrainConfigProvider/types"; import { defineMaxTokens } from "@/lib/helpers/defineMexTokens"; import { useAddBrainModal } from "./hooks/useAddBrainModal"; import { TextArea } from "../ui/TextField"; export const AddBrainModal = (): JSX.Element => { const { handleSubmit, isShareModalOpen, setIsShareModalOpen, register, openAiKey, temperature, maxTokens, model, isPending, } = useAddBrainModal(); return ( Add New Brain } title="Add Brain" desc="Create a new brain to start aggregating content" isOpen={isShareModalOpen} setOpen={setIsShareModalOpen} CloseTrigger={
} >
void handleSubmit(e)} className="my-10 flex flex-col items-center gap-2" >