Download wp-calypso/client/state/comments/selectors/get-expansions-for-post.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/comments/selectors/get-expansions-for-post.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/comments/selectors/get-expansions-for-post.js
-
curl -L -o get-expansions-for-post.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/comments/selectors/get-expansions-for-post.js
234 Bytes
| import { getStateKey } from 'calypso/state/comments/utils'; | |
| import 'calypso/state/comments/init'; | |
| export function getExpansionsForPost( state, siteId, postId ) { | |
| return state.comments.expansions[ getStateKey( siteId, postId ) ]; | |
| } | |