mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-28 17:53:21 +08:00
chore: update bot avatar (#8)
This commit is contained in:
@ -1,11 +1,19 @@
|
||||
import { ThreeDots } from "react-loader-spinner";
|
||||
import Icon from "./Icon";
|
||||
import { useConnectionStore } from "@/store";
|
||||
import EngineIcon from "./EngineIcon";
|
||||
|
||||
const MessageLoader = () => {
|
||||
const connectionStore = useConnectionStore();
|
||||
const connection = connectionStore.currentConnectionCtx?.connection;
|
||||
|
||||
return (
|
||||
<div className={`w-full max-w-full flex flex-row justify-start items-start my-4 pr-8 sm:pr-24`}>
|
||||
<div className="w-10 h-10 p-1 flex justify-center items-center mr-2 shrink-0">
|
||||
<img src="/chat-logo-bot.webp" alt="" />
|
||||
<div className="flex justify-center items-center mr-2 shrink-0">
|
||||
{connection ? (
|
||||
<EngineIcon className="w-10 h-auto p-1 border rounded-full" engine={connection.engineType} />
|
||||
) : (
|
||||
<img className="w-10 h-auto p-1" src="/chat-logo-bot.webp" alt="" />
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-0.5 w-12 bg-gray-100 px-4 py-2 rounded-lg">
|
||||
<ThreeDots wrapperClass="opacity-80" width="24" height="24" color="" />
|
||||
|
Reference in New Issue
Block a user