From bb49d0f7aadd4ac364e391eae5cac2afb5af9630 Mon Sep 17 00:00:00 2001 From: Ando Date: Mon, 14 Apr 2025 21:00:29 +0300 Subject: [PATCH] fix: remove unused ai features --- src/components/mods/studio/ai/chat-mode.tsx | 114 ------------------ src/components/mods/studio/ai/prompt-mode.tsx | 94 --------------- src/hooks/use-ai.tsx | 69 ----------- 3 files changed, 277 deletions(-) delete mode 100644 src/components/mods/studio/ai/chat-mode.tsx delete mode 100644 src/components/mods/studio/ai/prompt-mode.tsx delete mode 100644 src/hooks/use-ai.tsx 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 - - . - - . - - - . - - -

-
-
- )} -
-
- -
-
-