Download wp-calypso/packages/data-stores/src/wpcom-plans-ui/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/wpcom-plans-ui/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/wpcom-plans-ui/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/wpcom-plans-ui/index.ts
565 Bytes
| import { createReduxStore, register } from '@wordpress/data'; | |
| import { controls } from '@wordpress/data-controls'; | |
| import * as actions from './actions'; | |
| import { STORE_KEY } from './constants'; | |
| import reducer, { State } from './reducer'; | |
| import * as selectors from './selectors'; | |
| import type { WpcomPlansUIAction } from './actions'; | |
| import type { Reducer } from 'redux'; | |
| export type { State }; | |
| export const store = createReduxStore( STORE_KEY, { | |
| actions, | |
| controls, | |
| reducer: reducer as Reducer< State, WpcomPlansUIAction >, | |
| selectors, | |
| } ); | |
| register( store ); | |