react-code-dataset / wp-calypso /client /state /comments /selectors /get-inline-comments-expanded-state.js
react-code-dataset / wp-calypso /client /state /comments /selectors /get-inline-comments-expanded-state.js
Download wp-calypso/client/state/comments/selectors/get-inline-comments-expanded-state.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 212 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/comments/selectors/get-inline-comments-expanded-state.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/comments/selectors/get-inline-comments-expanded-state.js
-
curl -L -o get-inline-comments-expanded-state.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/comments/selectors/get-inline-comments-expanded-state.js
212 Bytes
| import 'calypso/state/comments/init'; | |
| export const getInlineCommentsExpandedState = ( state, streamKey, siteId, postId ) => { | |
| return !! state.comments.inlineExpansion?.[ streamKey ]?.[ siteId ]?.[ postId ]; | |
| }; | |