add to import/export
This commit is contained in:
@@ -99,6 +99,7 @@ export const Chatbar = () => {
|
||||
};
|
||||
|
||||
const handleImportConversations = (data: SupportedExportFormats) => {
|
||||
console.log(data);
|
||||
const { history, folders, prompts }: LatestExportFormat = importData(data);
|
||||
homeDispatch({ field: 'conversations', value: history });
|
||||
homeDispatch({
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
import {
|
||||
IconFileExport,
|
||||
IconMoon,
|
||||
IconSettings,
|
||||
IconSun,
|
||||
} from '@tabler/icons-react';
|
||||
import { IconFileExport, IconSettings } from '@tabler/icons-react';
|
||||
import { useContext, useState } from 'react';
|
||||
|
||||
import { useTranslation } from 'next-i18next';
|
||||
@@ -38,7 +33,6 @@ export const ChatbarSettings = () => {
|
||||
handleClearConversations,
|
||||
handleImportConversations,
|
||||
handleExportData,
|
||||
|
||||
handleApiKeyChange,
|
||||
} = useContext(ChatbarContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user