Download wp-calypso/packages/help-center/src/support-variations.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/help-center/src/support-variations.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/help-center/src/support-variations.ts
-
curl -L -o support-variations.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/help-center/src/support-variations.ts
700 Bytes
| export const SUPPORT_CHAT_OVERFLOW = 'SUPPORT_CHAT_OVERFLOW'; | |
| export const SUPPORT_FORUM = 'SUPPORT_FORUM'; | |
| export const SUPPORT_CHAT = 'SUPPORT_CHAT'; | |
| export const SUPPORT_TICKET = 'SUPPORT_TICKET'; | |
| export const SUPPORT_UPWORK_TICKET = 'SUPPORT_UPWORK_TICKET'; | |
| /** | |
| * @param {string} mode Help Center contact form mode | |
| * @returns {string} One of the exported support variation constants listed above | |
| */ | |
| export const getSupportVariationFromMode = ( mode: 'CHAT' | 'EMAIL' | 'FORUM' | 'UPWORK' ) => { | |
| switch ( mode ) { | |
| case 'CHAT': | |
| return SUPPORT_CHAT; | |
| case 'EMAIL': | |
| return SUPPORT_TICKET; | |
| case 'FORUM': | |
| return SUPPORT_FORUM; | |
| case 'UPWORK': | |
| return SUPPORT_UPWORK_TICKET; | |
| } | |
| }; | |