|
|
@ -3,7 +3,7 @@ import { memo, useState, useRef, useEffect, useLayoutEffect } from "react";
|
|
|
|
|
|
|
|
|
|
|
|
import SendWhiteIcon from "../icons/send-white.svg";
|
|
|
|
import SendWhiteIcon from "../icons/send-white.svg";
|
|
|
|
import BrainIcon from "../icons/brain.svg";
|
|
|
|
import BrainIcon from "../icons/brain.svg";
|
|
|
|
import ExportIcon from "../icons/export.svg";
|
|
|
|
import ExportIcon from "../icons/share.svg";
|
|
|
|
import ReturnIcon from "../icons/return.svg";
|
|
|
|
import ReturnIcon from "../icons/return.svg";
|
|
|
|
import CopyIcon from "../icons/copy.svg";
|
|
|
|
import CopyIcon from "../icons/copy.svg";
|
|
|
|
import DownloadIcon from "../icons/download.svg";
|
|
|
|
import DownloadIcon from "../icons/download.svg";
|
|
|
@ -11,6 +11,8 @@ import LoadingIcon from "../icons/three-dots.svg";
|
|
|
|
import BotIcon from "../icons/bot.svg";
|
|
|
|
import BotIcon from "../icons/bot.svg";
|
|
|
|
import AddIcon from "../icons/add.svg";
|
|
|
|
import AddIcon from "../icons/add.svg";
|
|
|
|
import DeleteIcon from "../icons/delete.svg";
|
|
|
|
import DeleteIcon from "../icons/delete.svg";
|
|
|
|
|
|
|
|
import MaxIcon from "../icons/max.svg";
|
|
|
|
|
|
|
|
import MinIcon from "../icons/min.svg";
|
|
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
Message,
|
|
|
|
Message,
|
|
|
@ -591,6 +593,17 @@ export function Chat(props: {
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className={styles["window-action-button"]}>
|
|
|
|
|
|
|
|
<IconButton
|
|
|
|
|
|
|
|
icon={chatStore.config.tightBorder ? <MinIcon /> : <MaxIcon />}
|
|
|
|
|
|
|
|
bordered
|
|
|
|
|
|
|
|
onClick={() => {
|
|
|
|
|
|
|
|
chatStore.updateConfig(
|
|
|
|
|
|
|
|
(config) => (config.tightBorder = !config.tightBorder),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<PromptToast
|
|
|
|
<PromptToast
|
|
|
|