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

const nameSpace = slice.name;

// tab highlights
export const fadeInIsActiveSelector = (state) => state[nameSpace].fadeInIsActive;
export const fadeInSelector = (state) => state[nameSpace].fadeIn;
export const fadeOutIsActiveSelector = (state) => state[nameSpace].fadeOutIsActive;
export const fadeOutSelector = (state) => state[nameSpace].fadeOut;

// tab basic
export const titleSelector = (state) => state[nameSpace].title;
export const descriptionSelector = (state) => state[nameSpace].description;
export const languageSelector = (state) => state[nameSpace].language;
export const feedSelector = (state) => state[nameSpace].feed;
export const feedOptionsSelector = (state) => state[nameSpace].feedOptions;
export const ownerSelector = (state) => state[nameSpace].owner;
export const accessLevelSelector = (state) => state[nameSpace].accessLevel;
export const hubsSelector = (state) => state[nameSpace].hubs;
export const hubsOptionsSelector = (state) => state[nameSpace].hubsOptions;

// tab advanced
export const dateSelector = (state) => state[nameSpace].date;
export const notesSelector = (state) => state[nameSpace].notes;
export const evergreenSelector = (state) => state[nameSpace].evergreen;
export const labelsSelector = (state) => state[nameSpace].labels;
export const keywordsSelector = (state) => state[nameSpace].keywords;
export const iabSelector = (state) => state[nameSpace].iab;

export const isNotifySelector = (state) => state[nameSpace].isNotify;
export const isHubsNotifySelector = (state) => state[nameSpace].isHubsNotify;
export const isCreateDateValidationErrorSelector = (state) => state[nameSpace].isCreateDateValidationError;
