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

const nameSpace = slice.name;

export const isLoadingSelector = (state) => state[nameSpace].isLoading;
export const playersSelector = (state) => state[nameSpace].players;
export const publishersSelector = (state) => state[nameSpace].publishers;
export const publisherSelector = (state) => state[nameSpace].publisher;
export const searchSelector = (state) => state[nameSpace].search;
export const pageSelector = (state) => state[nameSpace].page;
export const pageSizeSelector = (state) => state[nameSpace].pageSize;
export const recordsTotalSelector = (state) => state[nameSpace].recordsTotal;
export const sortBySelector = (state) => state[nameSpace].sortBy;
export const sortOrderSelector = (state) => state[nameSpace].sortOrder;
export const statusSelector = (state) => state[nameSpace].status;
export const fallbackOnlySelector = (state) => state[nameSpace].fallbackOnly;
export const modeSelector = (state) => state[nameSpace].mode;
export const aiPlaylistModeSelector = (state) => state[nameSpace].aiPlaylistMode;

export const playlistsSelector = (state) => state[nameSpace].playlists;
export const playlistIdSelector = (state) => state[nameSpace].playlistId;

export const embedCodePopupSelector = (state) => state[nameSpace].embedCodePopup;
