import { ChatbotUIContext } from "@/context/context" import { FC, useContext } from "react" import { AssistantPicker } from "./assistant-picker" import { usePromptAndCommand } from "./chat-hooks/use-prompt-and-command" import { FilePicker } from "./file-picker" import { PromptPicker } from "./prompt-picker" import { ToolPicker } from "./tool-picker" interface ChatCommandInputProps {} export const ChatCommandInput: FC = ({}) => { const { newMessageFiles, chatFiles, slashCommand, isFilePickerOpen, setIsFilePickerOpen, hashtagCommand, focusPrompt, focusFile } = useContext(ChatbotUIContext) const { handleSelectUserFile, handleSelectUserCollection } = usePromptAndCommand() return ( <> file.id )} selectedCollectionIds={[]} onSelectFile={handleSelectUserFile} onSelectCollection={handleSelectUserCollection} isFocused={focusFile} /> ) }