export type SearchCategory = {
  label: string;
  slug: string | undefined;
};

export type SearchResultItem = {
  _id: string;
  name: string;
  slug: string;
  parentCategorySlug: string;
  childCategorySlug: string;
  brand: string | undefined;
  imageUrl: string | undefined;
  imageAlt: string | undefined;
  minPrice: number;
  compareAtPrice: number | undefined;
  averageRating: number | undefined;
  reviewCount: number | undefined;
};

export type SearchState = {
  query: string;
  debouncedQuery: string;
  results: SearchResultItem[];
  isLoading: boolean;
  isEmpty: boolean;
  isOpen: boolean;
  selectedIndex: number;
  categorySlug: string | undefined;
};
