import { slice } from '../slices';

const nameSpace = slice.name;

export const accountsSelector = (state) => state[nameSpace].accounts;
export const pageSelector = (state) => state[nameSpace].page;
export const totalCountSelector = (state) => state[nameSpace].totalCount;
export const rowsPerPageSelector = (state) => state[nameSpace].rowsPerPage;
export const searchSelector = (state) => state[nameSpace].search;
export const sortBySelector = (state) => state[nameSpace].sortBy;
export const sortOrderSelector = (state) => state[nameSpace].sortOrder;
export const filterDateSelector = (state) => state[nameSpace].filterDate;
export const filterByStatusSelector = (state) => state[nameSpace].filterByStatus;
export const isLoadingSelector = (state) => state[nameSpace].isLoading;
export const pageConfigSelector = (state) => state[nameSpace].pageConfig;
export const activeTabIndexSelector = (state) => state[nameSpace].activeTabIndex;
export const userHubsSelector = (state) => state[nameSpace].userHubs;
export const userDemandAccountsSelector = (state) => state[nameSpace].userDemandAccounts;
export const modalSelector = (state) => state[nameSpace].modal;
