Dankoss Docs - v0.1.0
    Preparing search index...
    • The primary hook driving the Catalog/Browsing experience. Manages tabs (Products vs. Recipes), category filtering, pagination, and URL routing. *

      Returns {
          actions: {
              handleBackToBrowsing: () => void;
              handleCategoryChange: (catId: string) => void;
              handleLoadMore: () => void;
              handlePageChange: (newPage: number) => void;
              handleTabChange: (newTab: "products" | "recipes") => void;
          };
          state: {
              activeCategory: string;
              activeTab: "products"
              | "recipes";
              currentCatLabel: string;
              currentCats: CatalogCategory[];
              currentPage: number;
              hasMore: boolean;
              itemsOnThisPage: (DealCard & { _cat: string; _uniqueId: string })[];
              totalItemsCount: number;
              totalPages: number;
              visibleCount: number;
              visibleItems: (DealCard & { _cat: string; _uniqueId: string })[];
          };
      }

      An object divided into state (readonly data/UI properties) and actions (event handlers).