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

const nameSpace = slice.name;

export const nameSelector = (state) => state[nameSpace].name;
export const originalVideoIdSelector = (state) => state[nameSpace].originalVideoId;

export const isOpenSelector = (state) => state[nameSpace].isOpen;
export const isPlayedSelector = (state) => state[nameSpace].isPlayed;
export const isMutedSelector = (state) => state[nameSpace].isMuted;

export const startTrimProgressSelector = (state) => state[nameSpace].startTrimProgress;
export const playProgressSelector = (state) => state[nameSpace].playProgress;
export const endTrimProgressSelector = (state) => state[nameSpace].endTrimProgress;

export const currentTimeSelector = (state) => state[nameSpace].currentTime;
export const durationSelector = (state) => state[nameSpace].duration;
export const isVideoDurationLessHourSelector = (state) => state[nameSpace].isVideoDurationLessHour;

export const startTrimTimeSelector = (state) => state[nameSpace].startTrimTime;
export const endTrimTimeSelector = (state) => state[nameSpace].endTrimTime;

export const isShowShareSelector = (state) => state[nameSpace].isShowShare;
export const originalVideoSelector = (state) => state[nameSpace].originalVideo;
export const trimedVideoSelector = (state) => state[nameSpace].trimedVideo;
