import{useState as y}from"react";import{useActions as k}from"../../Sidebar/useActions";import{useCatalogFilter as M}from"./useCatalogFilter";import{useCatalogSort as Q}from"./useCatalogSort";import{useCatalogSearch as V}from"./useCatalogSearch";import{useCatalogViewMode as b}from"./useCatalogViewMode";function j(o,t,e,r){const{filters:i,filterQuery:s}=M(o,t),{sortOption:a,setSortOption:n,handleSortClick:l,isColumnSorted:u}=Q(),{searchQuery:c,setSearchQuery:C}=V(),{viewMode:m,setViewMode:p}=b(r),{onChangeViewClick:f,onChangeCollapseSidebarClick:S,layout:d,collapsedSidebar:g}=k(),[h,w]=y(e||0);return{filters:i,filterQuery:s,searchQuery:c,setSearchQuery:C,sortOption:a,setSortOption:n,handleSortClick:l,isColumnSorted:u,viewMode:m,setViewMode:p,entitiesCounter:h,setEntitiesCounter:w,onChangeViewClick:f,onChangeCollapseSidebarClick:S,layout:d,collapsedSidebar:g}}export{j as useCatalog};
