28 lines
664 B
JavaScript
Raw Normal View History

2016-06-10 00:16:01 -03:00
import auth from './auth';
import config from './config';
import entries, * as fromEntries from './entries';
import entryDraft from './entryDraft';
import collections from './collections';
import medias, * as fromMedias from './medias';
const reducers = {
auth,
config,
collections,
entries,
entryDraft,
medias
};
export default reducers;
export const selectEntry = (state, collection, slug) =>
fromEntries.selectEntry(state.entries, collection, slug);
export const selectEntries = (state, collection) =>
fromEntries.selectEntries(state.entries, collection);
2016-06-16 17:50:36 -03:00
export const getMedia = (state, uri) =>
fromMedias.getMedia(state.medias, uri);