import { getCurrentUserId } from 'calypso/state/current-user/selectors'; import Pages from './main'; export function pages( context, next ) { const author = context.params.author === 'my' ? getCurrentUserId( context.store.getState() ) : null; context.primary = ( ); next(); }