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

const nameSpace = slice.name;

export const destinationsSelector = (state: RootState) => state[nameSpace].destinations;
export const totalDestinationsSelector = (state: RootState) => state[nameSpace].totalDestinations;
export const publishersSelector = (state: RootState) => state[nameSpace].publishers;
export const searchSelector = (state: RootState) => state[nameSpace].search;
export const pageSelector = (state: RootState) => state[nameSpace].page;
export const pageSizeSelector = (state: RootState) => state[nameSpace].pageSize;
export const sortBySelector = (state: RootState) => state[nameSpace].sortBy;
export const sortOrderSelector = (state: RootState) => state[nameSpace].sortOrder;
export const platformSelector = (state: RootState) => state[nameSpace].platform;
export const statusSelector = (state: RootState) => state[nameSpace].status;
export const publisherIdSelector = (state: RootState) => state[nameSpace].publisherId;
export const publishEntriesSelector = (state: RootState) => state[nameSpace].publishEntries;
