diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/DynamicInput/OptionSelect/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/MetaInputs/OptionSelect/index.jsx similarity index 100% rename from frontend/src/components/WorkspaceChat/ChatContainer/DynamicInput/OptionSelect/index.jsx rename to frontend/src/components/WorkspaceChat/ChatContainer/MetaInputs/OptionSelect/index.jsx diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/DynamicInput/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/MetaInputs/index.jsx similarity index 89% rename from frontend/src/components/WorkspaceChat/ChatContainer/DynamicInput/index.jsx rename to frontend/src/components/WorkspaceChat/ChatContainer/MetaInputs/index.jsx index a161d749..6f4fe561 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/DynamicInput/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/MetaInputs/index.jsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from "react"; // import TextInput from './TextInput'; -import OptionSelect from "@/components/WorkspaceChat/ChatContainer/DynamicInput/OptionSelect"; +import OptionSelect from "@/components/WorkspaceChat/ChatContainer/MetaInputs/OptionSelect"; import { Cursor, Keyboard } from "@phosphor-icons/react"; import PromptInput from "../PromptInput"; // import RangeSlider from './RangeSlider'; @@ -9,7 +9,6 @@ import PromptInput from "../PromptInput"; // import DateTimePicker from './DateTimePicker'; // import FileUpload from './FileUpload'; // import Rating from './Rating'; -// import Checkbox from './Checkbox'; const inputComponents = { text: PromptInput, @@ -20,12 +19,11 @@ const inputComponents = { // datetime: DateTimePicker, // file: FileUpload, // rating: Rating, - // checkbox: Checkbox }; -const DynamicInput = ({ +const MetaInputs = ({ inputs, - isDynamicInput, + isMetaInputs, submit, setMessage, workspace, @@ -48,13 +46,13 @@ const DynamicInput = ({ : inputComponents[inputs?.type] || null; // Condition to show the dynamic input or the forced text input - const shouldShowDynamicInput = - isDynamicInput && inputs !== undefined && !isForcedTextInput; + const shouldShowMetaInputs = + isMetaInputs && inputs !== undefined && !isForcedTextInput; return (
- {shouldShowDynamicInput ? ( + {shouldShowMetaInputs ? ( )} - {isDynamicInput && inputs != undefined && ( + {isMetaInputs && inputs != undefined && (