Download wp-calypso/client/components/activity-card/activity-description.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 669 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/activity-card/activity-description.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/activity-card/activity-description.tsx
-
curl -L -o activity-description.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/activity-card/activity-description.tsx
669 Bytes
| import { FunctionComponent } from 'react'; | |
| import FormattedBlock from 'calypso/components/notes-formatted-block'; | |
| import { Activity } from 'calypso/state/activity-log/types'; | |
| interface Props { | |
| activity: Activity; | |
| } | |
| const ActivityDescription: FunctionComponent< Props > = ( { | |
| activity: { activityName, activityDescription }, | |
| } ) => ( | |
| <> | |
| { activityDescription.map( ( description, index ) => { | |
| const { intent, section, published } = description; | |
| return ( | |
| <FormattedBlock | |
| content={ description } | |
| key={ index } | |
| meta={ { activity: activityName, intent, section, published } } | |
| /> | |
| ); | |
| } ) } | |
| </> | |
| ); | |
| export default ActivityDescription; | |