File size: 1,634 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import type { State } from './reducer';
export const isHelpCenterShown = ( state: State ) => state.showHelpCenter;
export const isMessagingLauncherShown = ( state: State ) => state.showMessagingLauncher;
export const isMessagingWidgetShown = ( state: State ) => state.showMessagingWidget;
export const getSubject = ( state: State ) => state.subject;
export const getMessage = ( state: State ) => state.message;
export const getUserDeclaredSiteUrl = ( state: State ) => state.userDeclaredSiteUrl;
export const getUserDeclaredSite = ( state: State ) => state.userDeclaredSite;
export const getUnreadCount = ( state: State ) => state.unreadCount;
export const getIsMinimized = ( state: State ) => state.isMinimized;
export const getIsChatLoaded = ( state: State ) => state.isChatLoaded;
export const getAreSoundNotificationsEnabled = ( state: State ) =>
state.areSoundNotificationsEnabled;
export const getZendeskClientId = ( state: State ) => state.zendeskClientId;
export const getHelpCenterRouterHistory = ( state: State ) => state.helpCenterRouterHistory;
export const getNavigateToRoute = ( state: State ) => state.navigateToRoute;
export const getOdieInitialPromptText = ( state: State ) => state.odieInitialPromptText;
export const getOdieBotNameSlug = ( state: State ) => state.odieBotNameSlug;
export const getCurrentSupportInteraction = ( state: State ) => state.currentSupportInteraction;
export const getAllowPremiumSupport = ( state: State ) => state.allowPremiumSupport;
export const getHelpCenterOptions = ( state: State ) => state.helpCenterOptions;
export const getContextTerm = ( state: State ) => state.contextTerm;
|