diff --git a/src/components/mods/studio/ai/chat-mode.tsx b/src/components/mods/studio/ai/chat-mode.tsx deleted file mode 100644 index 76a9095..0000000 --- a/src/components/mods/studio/ai/chat-mode.tsx +++ /dev/null @@ -1,114 +0,0 @@ -import { Bot, MessageSquare, Send } from 'lucide-react' -import React from 'react' - -import { Button } from '@/components/ui/button' -import { Card, CardContent } from '@/components/ui/card' -import { Textarea } from '@/components/ui/textarea' - -import { Message } from '@/lib/definitions' - -export const ChatMode = ({ - messages, - scrollAreaRef, - isLoading, - inputValue, - handleSubmit, - setInputValue -}: { - messages: Message[] - scrollAreaRef: React.RefObject - isLoading: boolean - inputValue: string - handleSubmit: () => void - setInputValue: (value: string) => void -}) => { - return ( - - -
-
- {messages.map((message, index) => ( -
- {message.role === 'assistant' && ( -
- -
- )} -
-

{message.content}

-
- {message.role === 'user' && ( -
- -
- )} -
- ))} - - {/* Loading Message */} - {isLoading && ( -
-
- -
-
-

- Drowser AI is responding - - . - - . - - - . - - -

-
-
- )} -
-
- -
-
-