import page from '@automattic/calypso-router'; import i18n from 'i18n-calypso'; import { recordTracksEvent } from 'calypso/state/analytics/actions'; import BookCalendarStep from './book/calendar-step'; import BookConfirmationStep from './book/confirmation-step'; import BookInfoStep from './book/info-step'; import BookSkeleton from './book/skeleton'; import ConciergeCancel from './cancel'; import ConciergeMain from './main'; import RescheduleCalendarStep from './reschedule/calendar-step'; import RescheduleConfirmationStep from './reschedule/confirmation-step'; import RescheduleSkeleton from './reschedule/skeleton'; import './style.scss'; const book = ( context, next ) => { context.primary = ( ); next(); }; const cancel = ( context, next ) => { context.primary = ( ); next(); }; const reschedule = ( context, next ) => { context.primary = ( ); next(); }; const siteSelector = ( context, next ) => { context.store.dispatch( recordTracksEvent( 'calypso_concierge_site_selection_step' ) ); context.getSiteSelectionHeaderText = () => i18n.translate( 'Select a site for your {{strong}}Quick Start Session{{/strong}}', { components: { strong: }, } ); next(); }; const redirectToQuickStart = ( context, next ) => { const newPath = context.path.replace( '/me/concierge', '/me/quickstart' ); page.redirect( newPath ); next(); }; export default { book, cancel, reschedule, siteSelector, redirectToQuickStart, };