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

const nameSpace = slice.name;

// ui
export const loadingSelector = (state) => state[nameSpace].loading;
export const menuIsExpandedSelector = (state) => state[nameSpace].menuIsExpanded;
// account
export const accountLogoUrlSelector = (state) => state[nameSpace].accountLogoUrl;
export const accountUrlSelector = (state) => state[nameSpace].accountUrl;
// hub
export const hubsSelector = (state) => state[nameSpace].hubs;
export const selectedHubSelector = (state) => state[nameSpace].selectedHub;
export const hubsLoadingSelector = (state) => state[nameSpace].hubsLoading;
// watch
export const watchesSelector = (state) => state[nameSpace].watches;
export const watchesLoadingSelector = (state) => state[nameSpace].watchesLoading;
export const watchesPageSelector = (state) => state[nameSpace].watchesPage;
export const watchesPageSizeSelector = (state) => state[nameSpace].watchesPageSize;
export const watchesRecordsTotalSelector = (state) => state[nameSpace].watchesRecordsTotal;
// myWatch
export const myWatchIdSelector = (state) => state[nameSpace].myWatchId;
export const myWatchTitleSelector = (state) => state[nameSpace].myWatchTitle;
export const myWatchFolderNameSelector = (state) => state[nameSpace].myWatchFolderName;
export const myWatchChannelsSelector = (state) => state[nameSpace].myWatchChannels;
// externalShare
export const externalShareIdSelector = (state) => state[nameSpace].externalShareId;
export const externalShareTitleSelector = (state) => state[nameSpace].externalShareTitle;
export const externalShareFolderNameSelector = (state) => state[nameSpace].externalShareFolderName;
// selectedWatch
export const selectedWatchIdSelector = (state) => state[nameSpace].selectedWatchId;
export const selectedWatchTitleSelector = (state) => state[nameSpace].selectedWatchTitle;
export const selectedWatchFolderNameSelector = (state) => state[nameSpace].selectedWatchFolderName;
