File size: 1,158 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
35
36
37
38
39
40
41
42
43
import { translate, fixMe } from 'i18n-calypso';
import { Component } from 'react';
import DocumentHead from 'calypso/components/data/document-head';
import NavigationHeader from 'calypso/components/navigation-header';
import Stream from 'calypso/reader/stream';
import EmptyContent from './empty';

const title = translate( 'My Likes' );
const documentTitle = translate( '%s ‹ Reader', {
	args: title,
	comment: '%s is the section name. For example: "My Likes"',
} );

const emptyContent = () => <EmptyContent />;

class LikedStream extends Component {
	render() {
		return (
			<>
				<Stream
					{ ...this.props }
					listName={ title }
					emptyContent={ emptyContent }
					showFollowInHeader
				>
					<DocumentHead title={ documentTitle } />
					<NavigationHeader
						title={ translate( 'Likes' ) }
						subtitle={ fixMe( {
							text: 'Revisit the posts and comments you liked.',
							newCopy: translate( 'Revisit the posts and comments you liked.' ),
							oldCopy: translate( 'Rediscover content that you liked.' ),
						} ) }
						className="liked-stream-header"
					/>
				</Stream>
			</>
		);
	}
}

export default LikedStream;