@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
1 lines • 727 B
Source Map (JSON)
{"version":3,"file":"alternativePhoneCode.mjs","names":[],"sources":["../src/alternativePhoneCode.ts"],"sourcesContent":["import type { PhoneCodeChannelData } from './types';\n\nexport const ALTERNATIVE_PHONE_CODE_PROVIDERS: PhoneCodeChannelData[] = [\n {\n channel: 'whatsapp',\n name: 'WhatsApp',\n },\n];\n\nexport const getAlternativePhoneCodeProviderData = (channel?: string): PhoneCodeChannelData | null => {\n if (!channel) {\n return null;\n }\n return ALTERNATIVE_PHONE_CODE_PROVIDERS.find(p => p.channel === channel) || null;\n};\n"],"mappings":";AAEA,MAAa,mCAA2D,CACtE;CACE,SAAS;CACT,MAAM;AACR,CACF;AAEA,MAAa,uCAAuC,YAAkD;CACpG,IAAI,CAAC,SACH,OAAO;CAET,OAAO,iCAAiC,MAAK,MAAK,EAAE,YAAY,OAAO,KAAK;AAC9E"}