export default connect( ( state ) => ( { sectionName: getSectionName( state ), isSectionLoading: isSectionLoading( state ), tourState: getGuidedTourState( state ), isValid: ( when ) => !! when( state ), lastAction: getLastAction( state ), } ), {
export const hasAnalyticsEventFired = eventName => state => { const last = getLastAction( state ); return ( last.type === ANALYTICS_EVENT_RECORD && last.meta.analytics.some( record => record.payload.name === eventName ) ); };
state => ( { sectionName: getSectionName( state ), isSectionLoading: isSectionLoading( state ), tourState: getGuidedTourState( state ), isValid: when => !! when( state ), lastAction: getLastAction( state ), requestedTour: getInitialQueryArguments( state ).tour, } ),
export const hasUserPastedFromGoogleDocs = state => { const action = getLastAction( state ) || false; return action && action.type === EDITOR_PASTE_EVENT && action.source === SOURCE_GOOGLE_DOCS; };