import { Module } from 'vuex'
import { state as accessState, actions as accessActions, mutations as accessMutations } from '~/store/profile/access'
import { state as organizationState, actions as organizationActions, mutations as organizationMutations } from '~/store/profile/organization'
import { state as formState, actions as formActions, mutations as formMutations } from '~/store/form'

export const accessProfile:Module<any, any> = {
  namespaced: true,
  state: () => accessState(),
  actions: accessActions,
  mutations: accessMutations
}

export const organizationProfile:Module<any, any> = {
  namespaced: true,
  state: () => organizationState(),
  actions: organizationActions,
  mutations: organizationMutations
}

export const form:Module<any, any> = {
  namespaced: true,
  state: () => formState(),
  actions: formActions,
  mutations: formMutations
}
