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

const nameSpace = slice.name;

export const ccSegmentsSelector = (state) => state[nameSpace].ccSegments;
export const highlightsSelector = (state) => state[nameSpace].highlights;
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 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 videosSelector = (state) => state[nameSpace].videos;
export const lastCreatedVideoIdSelector = (state) => state[nameSpace].lastCreatedVideoId;
