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

const nameSpace = slice.name;

export const thumbnailDraftPreviewSelector = (state) => state[nameSpace].thumbnailDraftPreview;
export const thumbnailsSelector = (state) => state[nameSpace].thumbnails;
export const publishedSelector = (state) => state[nameSpace].published;
export const draftSelector = (state) => state[nameSpace].draft;
export const processingSelector = (state) => state[nameSpace].processing;
export const processingJobSelector = (state) => state[nameSpace].processingJob;
export const processingPercentageSelector = (state) => state[nameSpace].processingPercentage;

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

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

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