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

const nameSpace = slice.name;

export const translationFilesSelector = (state) => state[nameSpace].translationFiles;
export const selectedTranslateFileSelector = (state) => state[nameSpace].selectedTranslateFile;
export const getSubtitleSelector = (state) => state[nameSpace].subtitle;
export const getCcSegmentsSelector = (state) => state[nameSpace].ccSegments;
export const getLanguagesSelector = (state) => state[nameSpace].languages;
export const getTranslateLanguagesSelector = (state) => state[nameSpace].translateLanguages;
export const publishedSelector = (state) => state[nameSpace].published;
export const processingSelector = (state) => state[nameSpace].processing;
export const currentProcessingJobTypeSelector = (state) => state[nameSpace].currentProcessingJobType;
export const processingPercentageSelector = (state) => state[nameSpace].processingPercentage;
export const shouldOpenGenerateByAiConfirmSelector = (state) => state[nameSpace].shouldOpenGenerateByAiConfirm;

export const isEditModeSelector = (state) => state[nameSpace].isEditMode;
export const editDataSelector = (state) => state[nameSpace].editData;

export const isLoadingSelector = (state) => state[nameSpace].isLoading;
export const isAutoscrollSelector = (state) => state[nameSpace].isAutoscroll;
export const isHighlightSpeechSelector = (state) => state[nameSpace].isHighlightSpeech;
