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

const nameSpace = slice.name;

export const descriptionSelector = (state) => state[nameSpace].description;
export const descriptionsSelector = (state) => state[nameSpace].descriptions;
export const publishedSelector = (state) => state[nameSpace].published;
export const draftSelector = (state) => state[nameSpace].draft;
export const processingSelector = (state) => state[nameSpace].processing;
export const processingPercentageSelector = (state) => state[nameSpace].processingPercentage;

export const isLoadingSelector = (state) => state[nameSpace].isLoading;

export const shouldOpenGenerateByAiConfirm = (state) => state[nameSpace].shouldOpenGenerateByAiConfirm;

export const isGeneratingAvailableSelector = (state) => state[nameSpace].isGeneratingAvailable;
export const causesSelector = (state) => state[nameSpace].causes;

export const isDirtySelector = (state) => state[nameSpace].isDirty;
