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

const nameSpace = slice.name;

export const connectorsSelector = (state$) => state$[nameSpace].connectors;
export const totalCountSelector = (state$) => state$[nameSpace].totalCount;
export const pageSelector = (state$) => state$[nameSpace].page;
export const rowsPerPageSelector = (state$) => state$[nameSpace].rowsPerPage;
export const searchSelector = (state$) => state$[nameSpace].search;
export const filterStatusSelector = (state$) => state$[nameSpace].filterStatus;
export const filterFormatSelector = (state$) => state$[nameSpace].filterFormat;

export const nameSelector = (state$) => state$[nameSpace].name;
export const codeSelector = (state$) => state$[nameSpace].code;
export const paramsSelector = (state$) => state$[nameSpace].params;
export const parametersSelector = (state$) => state$[nameSpace].parameters;
export const commentsSelector = (state$) => state$[nameSpace].comments;
export const statusSelector = (state$) => state$[nameSpace].status;
export const formatSelector = (state$) => state$[nameSpace].format;
