fe-pilot
Version:
scanner in web, phonebook in web, autofill otp in web, share web, TextToSpeech in web, Voice Recognition in web, live location tracking in web, detect my location web, wakelock in web, color picker, WhatsappShare, SnapScanner, NetworkMonitor, View360
1 lines • 569 B
JavaScript
import React from"react";function TextToSpeechStart(a){var b=a.successCb,c=a.failureCb,d=a.loadingCb,e=a.successMsg,f=a.failureMsg,g=a.children,h=a.isAudioOn,i=a.textToSpeechStart,j=a.setIsAudioOn,k=a.text,l=a.defaultShow;return(!h||void 0!==l&&l)&&React.Children.map(g||"Start",function(a){return React.cloneElement("string"==typeof a?React.createElement("span",null,a):a,{onClick:function(){return i({successCb:b,failureCb:c,loadingCb:d,successMsg:e,failureMsg:f,setIsAudioOn:j,text:k})},type:"ttsStart"})})}export{TextToSpeechStart};export default TextToSpeechStart;