Download wp-calypso/client/blocks/inline-help/inline-help-compact-results.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 737 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/inline-help/inline-help-compact-results.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/inline-help/inline-help-compact-results.jsx
-
curl -L -o inline-help-compact-results.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/inline-help/inline-help-compact-results.jsx
737 Bytes
| import PropTypes from 'prop-types'; | |
| import { decodeEntities } from 'calypso/lib/formatting'; | |
| function InlineHelpCompactResults( { helpLinks, onClick } ) { | |
| return ( | |
| <ul className="inline-help__results-list"> | |
| { helpLinks.map( ( link ) => ( | |
| <li key={ link.link + '#' + link.id } className="inline-help__results-item"> | |
| <a | |
| href={ link.link } | |
| title={ decodeEntities( link.description ) } | |
| onClick={ ( event ) => onClick( event, link ) } | |
| tabIndex={ -1 } | |
| > | |
| { decodeEntities( link.title ) } | |
| </a> | |
| </li> | |
| ) ) } | |
| </ul> | |
| ); | |
| } | |
| InlineHelpCompactResults.propTypes = { | |
| helpLinks: PropTypes.array.isRequired, | |
| onClick: PropTypes.func.isRequired, | |
| }; | |
| export default InlineHelpCompactResults; | |