Download wp-calypso/client/state/account/selectors.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/account/selectors.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/account/selectors.tsx
-
curl -L -o selectors.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/account/selectors.tsx
261 Bytes
| import { AccountState } from './types'; | |
| export const getRestoreToken = ( state: { account?: AccountState } ) => | |
| state.account?.restoreToken || null; | |
| export const getIsRestoring = ( state: { account?: AccountState } ) => | |
| state.account?.isRestoring || false; | |