Download wp-calypso/packages/data-stores/src/subscriber/selectors.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/subscriber/selectors.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/subscriber/selectors.ts
-
curl -L -o selectors.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/subscriber/selectors.ts
641 Bytes
| import type { State } from './reducers'; | |
| import type { ImportJob } from './types'; | |
| export const getState = ( state: State ) => state.subscriber; | |
| export const getHydrationStatus = ( state: State ) => state.subscriber.hydrated; | |
| export const getAddSubscribersSelector = ( state: State ) => state.subscriber.add; | |
| export const getImportSubscribersSelector = ( state: State ) => state.subscriber.import; | |
| export const getImportJobsSelector = ( state: State ) => state.subscriber.imports; | |
| export function getLatestImportJobSelector( state: State ): ImportJob | undefined { | |
| const imports = state.subscriber?.imports || []; | |
| return imports[ 0 ]; | |
| } | |