Some checks failed
Deploy to Test Environment / deploy-to-test (push) Failing after 46s
13 lines
382 B
TypeScript
13 lines
382 B
TypeScript
// src/contexts/UserDataContext.ts
|
|
import React from 'react';
|
|
import type { MasterGroceryItem, ShoppingList } from '../types';
|
|
|
|
export interface UserDataContextType {
|
|
watchedItems: MasterGroceryItem[];
|
|
shoppingLists: ShoppingList[];
|
|
isLoading: boolean;
|
|
error: string | null;
|
|
}
|
|
|
|
export const UserDataContext = React.createContext<UserDataContextType | undefined>(undefined);
|