Download wp-calypso/client/reader/liked-stream/main.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/liked-stream/main.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/reader/liked-stream/main.jsx
-
curl -L -o main.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/liked-stream/main.jsx
1.16 kB
| 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; | |