summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/feature_flags/store/index/state.js
blob: f8439b02639aa9341d43f3261ff1aec8cfbed38a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { FEATURE_FLAG_SCOPE, USER_LIST_SCOPE } from '../../constants';

export default ({ endpoint, projectId, unleashApiInstanceId, rotateInstanceIdPath }) => ({
  [FEATURE_FLAG_SCOPE]: [],
  [USER_LIST_SCOPE]: [],
  alerts: [],
  count: {},
  pageInfo: { [FEATURE_FLAG_SCOPE]: {}, [USER_LIST_SCOPE]: {} },
  isLoading: true,
  hasError: false,
  endpoint,
  rotateEndpoint: rotateInstanceIdPath,
  instanceId: unleashApiInstanceId,
  isRotating: false,
  hasRotateError: false,
  options: {},
  projectId,
});