import { createContext } from "react";
import type { SearchFilters } from "../types/search";

interface FilterContextType {
  filters: SearchFilters;
  setFilters: (filters: SearchFilters) => void;
}

export const FilterContext = createContext<FilterContextType>({
  filters: {
    Search: "",
    MealType: 0,
    Time: 0,
    Difficulty: 0,
    ServingSize: 0,
    Favorites: false,
  },
  setFilters: () => { return },
});
