// src/contexts/MasterItemsContext.ts
import { createContext } from 'react';
import type { MasterGroceryItem } from '../types';

export interface MasterItemsContextType {
  masterItems: MasterGroceryItem[];
  isLoading: boolean;
  error: string | null;
}

export const MasterItemsContext = createContext<MasterItemsContextType | undefined>(undefined);