Download wp-calypso/client/blocks/like-button/icons.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/like-button/icons.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/like-button/icons.jsx
-
curl -L -o icons.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/like-button/icons.jsx
392 Bytes
| import { Gridicon } from '@automattic/components'; | |
| import PropTypes from 'prop-types'; | |
| const LikeIcons = ( { size } ) => ( | |
| <span className="like-button__like-icons"> | |
| <Gridicon icon="star" size={ size } /> | |
| <Gridicon icon="star-outline" size={ size } /> | |
| </span> | |
| ); | |
| LikeIcons.propTypes = { | |
| size: PropTypes.number, | |
| }; | |
| LikeIcons.defaultProps = { | |
| size: 24, | |
| }; | |
| export default LikeIcons; | |