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

const nameSpace = slice.name;

export const slidesSelector = (state) => state[nameSpace].slides;
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 downloadSelector = (state) => state[nameSpace].download;

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

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

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

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