first commit

This commit is contained in:
AyrisAI
2026-08-20 01:51:59 +03:00
commit 97b83c7fd4
109 changed files with 21215 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import type { AiImportResponse, AiExtractedCategory } from "@menulio/shared";
let currentImportData: AiImportResponse | null = null;
export const aiStore = {
setImportData: (data: AiImportResponse) => {
currentImportData = data;
},
getImportData: (): AiImportResponse | null => {
return currentImportData;
},
updateCategories: (categories: AiExtractedCategory[]) => {
if (currentImportData) {
currentImportData = {
...currentImportData,
categories,
};
}
},
clear: () => {
currentImportData = null;
},
};