Download wp-calypso/packages/data-stores/src/user/selectors.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/user/selectors.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/user/selectors.ts
-
curl -L -o selectors.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/user/selectors.ts
245 Bytes
| import type { State } from './reducer'; | |
| export const getState = ( state: State ) => state; | |
| export const getCurrentUser = ( state: State ) => state.currentUser; | |
| export const isCurrentUserLoggedIn = ( state: State ) => !! state.currentUser?.ID; | |