import { createElement } from 'react'; import { sectionify } from 'calypso/lib/route'; import { trackPageLoad, trackUpdatesLoaded, trackScrollPage, } from 'calypso/reader/controller-helper'; import LikedPostsStream from 'calypso/reader/liked-stream/main'; const analyticsPageTitle = 'Reader'; const exported = { likes( context, next ) { const basePath = sectionify( context.path ); const fullAnalyticsPageTitle = analyticsPageTitle + ' > My Likes'; const mcKey = 'postlike'; const streamKey = 'likes'; trackPageLoad( basePath, fullAnalyticsPageTitle, mcKey ); context.primary = (