/* 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 { Divider } from "../ui/Divider"; import { TextArea } from "../ui/TextArea"; 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={
} >
{ e.preventDefault(); void handleSubmit(); }} className="my-10 flex flex-col items-center gap-2" >