import {
  ExtensionBetaFeedbackState,
  ExtensionOnboardingState,
} from 'wallet/src/features/behaviorHistory/slice'
import { SharedState } from 'wallet/src/state/reducer'

export const selectHasViewedReviewScreen = (state: SharedState): boolean =>
  state.behaviorHistory.hasViewedReviewScreen

export const selectHasSubmittedHoldToSwap = (state: SharedState): boolean =>
  state.behaviorHistory.hasSubmittedHoldToSwap

export const selectHasSkippedUnitagPrompt = (state: SharedState): boolean =>
  state.behaviorHistory.hasSkippedUnitagPrompt

export const selectHasCompletedUnitagsIntroModal = (state: SharedState): boolean =>
  state.behaviorHistory.hasCompletedUnitagsIntroModal

export const selectExtensionOnboardingState = (state: SharedState): ExtensionOnboardingState =>
  state.behaviorHistory.extensionOnboardingState

export const selectExtensionBetaFeedbackState = (
  state: SharedState
): ExtensionBetaFeedbackState | undefined => state.behaviorHistory.extensionBetaFeedbackState
