File size: 490 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import JetpackAppEmptyContent from './empty';
import JetpackAppPlans from './plans/main';
import type { Callback } from '@automattic/calypso-router';

export const jetpackAppPlans: Callback = ( context, next ) => {
	context.primary = (
		<JetpackAppPlans
			paidDomainName={ context.query.paid_domain_name }
			originalUrl={ context.originalUrl }
		/>
	);

	next();
};

export const pageNotFound: Callback = ( context, next ) => {
	context.primary = <JetpackAppEmptyContent />;
	next();
};