Download wp-calypso/apps/notifications/src/panel/utils/noticon2gridicon.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/utils/noticon2gridicon.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/notifications/src/panel/utils/noticon2gridicon.js
-
curl -L -o noticon2gridicon.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/utils/noticon2gridicon.js
384 Bytes
| const iconMap = { | |
| '\uf814': 'mention', | |
| '\uf300': 'comment', | |
| '\uf801': 'add', | |
| '\uf455': 'info', | |
| '\uf470': 'lock', | |
| '\uf806': 'stats-alt', | |
| '\uf805': 'reblog', | |
| '\uf408': 'star', | |
| '\uf804': 'trophy', | |
| '\uf467': 'reply', | |
| '\uf414': 'warning', | |
| '\uf418': 'checkmark', | |
| '\uf447': 'cart', | |
| }; | |
| const noticon2gridicon = ( c ) => iconMap[ c ] ?? 'info'; | |
| export default noticon2gridicon; | |