File size: 812 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { translate, fixMe } from 'i18n-calypso';
import EmptyContent from 'calypso/components/empty-content';
import TitanRedirector from 'calypso/my-sites/email/titan-redirector';

export default {
	emailTitanAddMailboxes( pageContext, next ) {
		pageContext.primary = (
			<TitanRedirector
				mode={ pageContext.params.mode }
				jwt={ pageContext.query.jwt }
				redirectUrl={ pageContext.query.redirect_url }
			/>
		);

		next();
	},
	notFound( pageContext, next ) {
		pageContext.primary = (
			<EmptyContent
				title={ fixMe( {
					text: 'Page not found.',
					newCopy: translate( 'Page not found.' ),
					oldCopy: translate( 'Uh oh. Page not found.' ),
				} ) }
				line={ translate(
					"Sorry, the page you were looking for doesn't exist or has been moved."
				) }
			/>
		);

		next();
	},
};