diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 360d38d..0760078 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -19,9 +19,8 @@ import * as Tooltip from '@radix-ui/react-tooltip'; import styles from './BaseChat.module.scss'; import type { ProviderInfo } from '~/utils/types'; import { ExportChatButton } from '~/components/chat/chatExportAndImport/ExportChatButton'; -import { ImportButton } from '~/components/chat/chatExportAndImport/ImportButton'; +import { ImportButtons } from '~/components/chat/chatExportAndImport/ImportButtons'; import { ExamplePrompts } from '~/components/chat/ExamplePrompts'; -import { ImportFolderButton } from '~/components/chat/ImportFolderButton'; // eslint-disable-next-line @typescript-eslint/no-unused-vars const providerList = PROVIDER_LIST; @@ -311,7 +310,7 @@ export const BaseChat = React.forwardRef( - {!chatStarted && ImportButton(importChat)} + {!chatStarted && ImportButtons(importChat)} {!chatStarted && ExamplePrompts(sendMessage)} {() => } diff --git a/app/components/chat/chatExportAndImport/ImportButton.tsx b/app/components/chat/chatExportAndImport/ImportButtons.tsx similarity index 82% rename from app/components/chat/chatExportAndImport/ImportButton.tsx rename to app/components/chat/chatExportAndImport/ImportButtons.tsx index 91c699e..2b59574 100644 --- a/app/components/chat/chatExportAndImport/ImportButton.tsx +++ b/app/components/chat/chatExportAndImport/ImportButtons.tsx @@ -1,8 +1,9 @@ import type { Message } from 'ai'; import { toast } from 'react-toastify'; import React from 'react'; +import { ImportFolderButton } from '~/components/chat/ImportFolderButton'; -export function ImportButton(importChat: ((description: string, messages: Message[]) => Promise) | undefined) { +export function ImportButtons(importChat: ((description: string, messages: Message[]) => Promise) | undefined) { return (
Import Chat +