Download wp-calypso/packages/data-stores/src/wpcom-plans-ui/actions.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 860 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/wpcom-plans-ui/actions.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/wpcom-plans-ui/actions.ts
-
curl -L -o actions.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/wpcom-plans-ui/actions.ts
860 Bytes
| import type { StorageAddOnSlug } from '../add-ons/types'; | |
| import type { PlanSlug, WPComPlanStorageFeatureSlug } from '@automattic/calypso-products'; | |
| export const setShowDomainUpsellDialog = ( show: boolean ) => | |
| ( { | |
| type: 'WPCOM_PLANS_UI_DOMAIN_UPSELL_DIALOG_SET_SHOW' as const, | |
| show, | |
| } ) as const; | |
| export const resetStore = () => | |
| ( { | |
| type: 'WPCOM_PLANS_UI_RESET_STORE', | |
| } ) as const; | |
| export const setSelectedStorageOptionForPlan = ( { | |
| addOnSlug, | |
| planSlug, | |
| siteId, | |
| }: { | |
| addOnSlug: StorageAddOnSlug | WPComPlanStorageFeatureSlug; | |
| planSlug: PlanSlug; | |
| siteId?: number | null; | |
| } ) => | |
| ( { | |
| type: 'WPCOM_PLANS_UI_SET_SELECTED_STORAGE_OPTION_FOR_PLAN', | |
| addOnSlug, | |
| planSlug, | |
| siteId, | |
| } ) as const; | |
| export type WpcomPlansUIAction = ReturnType< | |
| typeof setShowDomainUpsellDialog | typeof resetStore | typeof setSelectedStorageOptionForPlan | |
| >; | |