react-code-dataset / wp-calypso /client /my-sites /plugins /plugin-management-v2 /plugin-action-status /messages /remove.ts
react-code-dataset / wp-calypso /client /my-sites /plugins /plugin-management-v2 /plugin-action-status /messages /remove.ts
Download wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/remove.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 957 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/remove.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/remove.ts
-
curl -L -o remove.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-management-v2/plugin-action-status/messages/remove.ts
957 Bytes
| import { | |
| PLUGIN_INSTALLATION_IN_PROGRESS as IN_PROGRESS, | |
| PLUGIN_INSTALLATION_ERROR as ERROR, | |
| } from 'calypso/state/plugins/installed/status/constants'; | |
| import { PluginActionMessagesByStatus } from './types'; | |
| const RemoveMessages: PluginActionMessagesByStatus = { | |
| [ IN_PROGRESS ]: ( { hasSelectedSite, siteCount } ) => | |
| hasSelectedSite | |
| ? ( translate ) => translate( 'Removing Plugin' ) | |
| : ( translate ) => | |
| translate( | |
| 'Removing plugin from %(count)s site', | |
| 'Removing plugin from %(count)s sites', | |
| { args: { count: siteCount }, count: siteCount } | |
| ), | |
| [ ERROR ]: ( { hasSelectedSite, siteCount } ) => | |
| hasSelectedSite | |
| ? ( translate ) => translate( 'Failed to remove plugin' ) | |
| : ( translate ) => | |
| translate( | |
| 'Failed to remove plugin from %(count)s site', | |
| 'Failed to remove plugin from %(count)s sites', | |
| { args: { count: siteCount }, count: siteCount } | |
| ), | |
| }; | |
| export default RemoveMessages; | |