{"size": 1413, "ext": "js", "max_stars_repo_path": "poc-app/src/actions/index.js", "max_stars_repo_name": "nicktaras/react-dynamic-component-load-poc", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "poc-app/src/actions/index.js", "max_issues_repo_name": "nicktaras/react-dynamic-component-load-poc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "poc-app/src/actions/index.js", "max_forks_repo_name": "nicktaras/react-dynamic-component-load-poc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.7903225806, "max_line_length": 63, "alphanum_fraction": 0.5201698514}
// For Each Action, assign a variable as shown.
export const GET_QUESTIONS          = 'GET_QUESTIONS';
export const GET_NEXT_QUESTION_PAGE = 'GET_NEXT_QUESTION_PAGE';
export const GET_PREV_QUESTION_PAGE = 'GET_PREV_QUESTION_PAGE';

// POC get next question.
export function getNextQuestionPage(){
  return {
    type: 'GET_NEXT_QUESTION',
    payLoad: 2
  }
}

// POC get prev question.
export function getPrevQuestionPage(){
  return {
    type: 'GET_PREV_QUESTION_PAGE',
    payLoad: 1
  }
}

// POC question store.
export function getQuestions(){
  return {
    type: 'GET_QUESTIONS',
    payLoad: [
        {
          id: 1,
          title: "Question X",
          menuTitle: "Question X Menu",
          questionText: "Question Text X",
          valid: false,
          type: "QuestionX",
          answer: null,
          // answer: {
          //   value: null,
          //   fequency: undefined
          // },
          analytics: {
            title: "Question X"
          },
        },
        {
          id: 2,
          title: "Question Y",
          menuTitle: "Question Y Menu",
          questionText: "Question Text Y",
          valid: false,
          type: "QuestionY",
          answer: null,
          // answer: {
          //   value: null,
          //   fequency: undefined
          // },
          analytics: {
            title: "Question Y"
          }
        }
      ]
  }
}
