summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/static_site_editor/store/state.js
blob: d48cc8ed1a43f674487805f59dd8eb0c28a4e553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const createState = (initialState = {}) => ({
  username: null,
  projectId: null,
  sourcePath: null,

  isLoadingContent: false,
  isSavingChanges: false,

  isContentLoaded: false,

  originalContent: '',
  content: '',
  title: '',

  savedContentMeta: null,

  ...initialState,
});

export default createState;