Skip to content

Commit

Permalink
rm talkToType
Browse files Browse the repository at this point in the history
  • Loading branch information
alewin committed Apr 17, 2023
1 parent 3a7cee7 commit e0655b7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ import {
MessageTypeEnum,
sendPromptMessage,
usePromptBook,
useSettings,
useWebuiUrl,
} from "@/lib/chatbot"

import { Image } from "./Image"

export const Message = ({ message }: { message: MessageType }) => {
const [selectedImage, setSelectedImage] = React.useState(-1)
const addPrompt = usePromptBook((state) => state.addPrompt)
const [url] = useWebuiUrl((state) => [state.url])
const [talkToType] = useSettings((state) => [state.talkToType])
return message.type === MessageTypeEnum.YOU ? (
<div className="chat chat-end">
<div className="chat-image avatar">
Expand Down

0 comments on commit e0655b7

Please sign in to comment.