This commit is contained in:
Mckay Wrigley
2023-03-27 09:38:56 -06:00
committed by GitHub
parent 2269403806
commit 34c79c0d66
51 changed files with 1744 additions and 295 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import { ChatFolder, Conversation } from '@/types';
import { Conversation } from '@/types/chat';
import { Folder } from '@/types/folder';
function currentDate() {
const date = new Date();
@@ -40,7 +41,7 @@ export const exportData = () => {
export const importData = (
conversations: Conversation[],
folders: ChatFolder[],
folders: Folder[],
) => {
localStorage.setItem('conversationHistory', JSON.stringify(conversations));
localStorage.setItem(