2016-08-11 18:21:32 -03:00

30 lines
707 B
JavaScript

import auth from './auth';
import config from './config';
import editor from './editor';
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,
editor,
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);
export const getMedia = (state, path) =>
fromMedias.getMedia(state.medias, path);