feat: add sharing feature

This commit is contained in:
2025-10-30 13:18:01 -03:00
parent 9343efc377
commit 35bfec9915
6 changed files with 446 additions and 6 deletions
+6 -2
View File
@@ -1,15 +1,19 @@
import { DailyTotalCalories, FoodItem } from "./types";
import { DailyTotalCalories, FoodItem, SharedDay } from "./types";
interface AppState {
currentHighlightIndex: number;
searchTimeout: number | null;
searchResults: FoodItem[];
calendarMonthlyCalories: DailyTotalCalories[];
isSharedView: boolean;
sharedData: SharedDay | null;
}
export const appState: AppState = {
currentHighlightIndex: -1,
searchTimeout: null,
searchResults: [],
calendarMonthlyCalories: []
calendarMonthlyCalories: [],
isSharedView: false,
sharedData: null
};