File size: 373 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 |
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 = (
<Pages status={ context.params.status } search={ context.query.s } author={ author } />
);
next();
}
|