import { RootState } from './../rootReducer'

export const selectVerifyOtp = (rootState: RootState) =>
  rootState?.talentState?.verifyOtp

export const selectTalentLoading = (rootState: RootState) =>
  rootState?.talentState?.loading

export const selectTalentError = (rootState: RootState) =>
  rootState?.talentState?.error
export const selectFanClubCount = (rootState: RootState) =>
  rootState?.talentState?.fanClubCount
export const selectDataFormCount = (rootState: RootState) =>
  rootState?.talentState?.dataFormCount
export const selectListDataForm = (rootState: RootState) =>
  rootState?.talentState?.forms

export const selectListPreRelease = (rootState: RootState) =>
  rootState?.talentState?.preRelease
export const selectpreReleaseCount = (rootState: RootState) => {
  return rootState?.talentState?.preReleaseDownloads
}

export const selectActiveModule = (rootState: RootState) =>
  rootState?.talentState?.activeModule

export const closeExpandModule = (rootState: RootState) =>
  rootState?.talentState?.closeExpand
