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

const nameSpace = slice.name;

export const chaptersSelector = (state) => state[nameSpace].chapters;
export const publishedSelector = (state) => state[nameSpace].published;
export const draftSelector = (state) => state[nameSpace].draft;
export const processingSelector = (state) => state[nameSpace].processing;

export const isLoadingSelector = (state) => state[nameSpace].isLoading;
export const editableIdSelector = (state) => state[nameSpace].editableId;
export const createIdSelector = (state) => state[nameSpace].createId;

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

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

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

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

export const isMultiselectModeActiveSelector = (state) => state[nameSpace].isMultiselectModeActive;
export const selectedChaptersSelector = (state) => state[nameSpace].selectedChapters;
export const shouldOpenCreateVideoFormSelector = (state) => state[nameSpace].shouldOpenCreateVideoForm;
export const videosSelector = (state) => state[nameSpace].videos;
