Download wp-calypso/client/reader/list-manage/list-item.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/list-manage/list-item.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/reader/list-manage/list-item.tsx
-
curl -L -o list-item.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/list-manage/list-item.tsx
510 Bytes
| import FeedItem from './feed-item'; | |
| import SiteItem from './site-item'; | |
| import TagItem from './tag-item'; | |
| import { Item, List } from './types'; | |
| export default function ListItem( props: { | |
| hideIfInList?: boolean; | |
| isFollowed?: boolean; | |
| item: Item; | |
| list: List; | |
| owner: string; | |
| } ) { | |
| if ( props.item.feed_ID ) { | |
| return <FeedItem { ...props } />; | |
| } else if ( props.item.site_ID ) { | |
| return <SiteItem { ...props } />; | |
| } else if ( props.item.tag_ID ) { | |
| return <TagItem { ...props } />; | |
| } | |
| return null; | |
| } | |