2025-10-30 13:18:01 -03:00
|
|
|
import { DailyTotalCalories, FoodItem, SharedDay } from "./types";
|
2025-09-07 16:33:56 -03:00
|
|
|
|
|
|
|
|
interface AppState {
|
|
|
|
|
currentHighlightIndex: number;
|
|
|
|
|
searchTimeout: number | null;
|
|
|
|
|
searchResults: FoodItem[];
|
|
|
|
|
calendarMonthlyCalories: DailyTotalCalories[];
|
2025-10-30 13:18:01 -03:00
|
|
|
isSharedView: boolean;
|
|
|
|
|
sharedData: SharedDay | null;
|
2025-09-07 16:33:56 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const appState: AppState = {
|
|
|
|
|
currentHighlightIndex: -1,
|
|
|
|
|
searchTimeout: null,
|
|
|
|
|
searchResults: [],
|
2025-10-30 13:18:01 -03:00
|
|
|
calendarMonthlyCalories: [],
|
|
|
|
|
isSharedView: false,
|
|
|
|
|
sharedData: null
|
2025-09-07 16:33:56 -03:00
|
|
|
};
|