24 lines
571 B
TypeScript
24 lines
571 B
TypeScript
import { DailyTotalCalories, FoodItem, SharedDay } from "./types";
|
|
|
|
interface AppState {
|
|
currentHighlightIndex: number;
|
|
searchTimeout: number | null;
|
|
searchResults: FoodItem[];
|
|
calendarMonthlyCalories: DailyTotalCalories[];
|
|
isSharedView: boolean;
|
|
sharedData: SharedDay | null;
|
|
userTimezone: string;
|
|
todayDateString: string;
|
|
}
|
|
|
|
export const appState: AppState = {
|
|
currentHighlightIndex: -1,
|
|
searchTimeout: null,
|
|
searchResults: [],
|
|
calendarMonthlyCalories: [],
|
|
isSharedView: false,
|
|
sharedData: null,
|
|
userTimezone: '',
|
|
todayDateString: ''
|
|
};
|