diff --git a/app/client/packages/design-system/widgets/src/components/AIChat/index.ts b/app/client/packages/design-system/widgets/src/components/AIChat/index.ts deleted file mode 100644 index 3bd16e178a03..000000000000 --- a/app/client/packages/design-system/widgets/src/components/AIChat/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./src"; diff --git a/app/client/packages/design-system/widgets/src/components/AIChat/src/AIChat.tsx b/app/client/packages/design-system/widgets/src/components/AIChat/src/AIChat.tsx deleted file mode 100644 index d6975d9750a2..000000000000 --- a/app/client/packages/design-system/widgets/src/components/AIChat/src/AIChat.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import { Button, Text, TextArea } from "@appsmith/wds"; -import type { FormEvent, ForwardedRef, KeyboardEvent } from "react"; -import React, { forwardRef, useCallback } from "react"; -import { ChatTitle } from "./ChatTitle"; -import styles from "./styles.module.css"; -import { ThreadMessage } from "./ThreadMessage"; -import type { AIChatProps, ChatMessage } from "./types"; -import { UserAvatar } from "./UserAvatar"; - -const MIN_PROMPT_LENGTH = 3; - -const _AIChat = (props: AIChatProps, ref: ForwardedRef) => { - const { - // assistantName, - chatTitle, - isWaitingForResponse = false, - onPromptChange, - onSubmit, - prompt, - promptInputPlaceholder, - thread, - username, - ...rest - } = props; - - const handleFormSubmit = useCallback( - (event: FormEvent) => { - event.preventDefault(); - onSubmit?.(); - }, - [onSubmit], - ); - - const handlePromptInputKeyDown = useCallback( - (event: KeyboardEvent) => { - if (event.key === "Enter" && event.shiftKey) { - event.preventDefault(); - onSubmit?.(); - } - }, - [onSubmit], - ); - - return ( -
-
- - -
- - - {username} - -
-
- -
    - {thread.map((message: ChatMessage) => ( - - ))} -
- -
-