2017-08-25 10:37:46 +00:00
|
|
|
import moduleTemplate from './moduleTemplate';
|
2017-11-10 23:39:51 +00:00
|
|
|
import empty from '../data/emptySyncedContent';
|
2017-08-25 10:37:46 +00:00
|
|
|
|
|
|
|
const module = moduleTemplate(empty, true);
|
|
|
|
|
|
|
|
module.getters = {
|
|
|
|
...module.getters,
|
|
|
|
current: (state, getters, rootState, rootGetters) =>
|
|
|
|
state.itemMap[`${rootGetters['file/current'].id}/syncedContent`] || empty(),
|
|
|
|
};
|
|
|
|
|
|
|
|
export default module;
|