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

const nameSpace = slice.name;

export const formsSelector = (state) => state[nameSpace].forms;
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 statusSelector = (state) => state[nameSpace].status;
export const siteSelector = (state) => state[nameSpace].site;
export const siteOptionsSelector = (state) => state[nameSpace].siteOptions;
export const isFormDownloadInProgressSelector = (state) => state[nameSpace].isFormDownloadInProgress;
export const formDownloadProcessingNotificationKeySelector = (state) =>
  state[nameSpace].formDownloadProcessingNotificationKey;
export const shouldShowDownloadTryRequestOverConfirmSelector = (state) =>
  state[nameSpace].shouldShowDownloadTryRequestOverConfirm;
export const formDownloadTryRequestCounterSelector = (state) => state[nameSpace].formDownloadTryRequestCounter;
export const templatesSelector = (state) => state[nameSpace].templates;
export const lastUsedTemplatesSelector = (state) => state[nameSpace].lastUsedTemplates;
export const templateCategorySelector = (state) => state[nameSpace].templateCategory;
export const templateCategoryOptionsSelector = (state) => state[nameSpace].templateCategoryOptions;
export const templateSearchTextSelector = (state) => state[nameSpace].templateSearchText;
