Download wp-calypso/client/lib/emails/is-google-email-account.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/emails/is-google-email-account.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/emails/is-google-email-account.js
-
curl -L -o is-google-email-account.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/emails/is-google-email-account.js
288 Bytes
| import { | |
| EMAIL_ACCOUNT_TYPE_GOOGLE_WORKSPACE, | |
| EMAIL_ACCOUNT_TYPE_GSUITE, | |
| } from './email-provider-constants'; | |
| export function isGoogleEmailAccount( emailAccount ) { | |
| return [ EMAIL_ACCOUNT_TYPE_GOOGLE_WORKSPACE, EMAIL_ACCOUNT_TYPE_GSUITE ].includes( | |
| emailAccount?.account_type | |
| ); | |
| } | |