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

  isLoadingContent: false,
  isSavingChanges: false,

  isContentLoaded: false,

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

  savedContentMeta: null,

  ...initialState,
});

export default createState;