UNPKG

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 1.44 kB
function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}import React from"react";function VoiceRecognitionModal(a){var b=a.children,c=a.setIsModalVisible,d=a.isModalVisible,e=a.isVoiceStarted,f=a.voiceText,g=!0;return d&&React.Children.map(b,function(a){var b,d;return g=a.type&&(null===(b=a.type)||void 0===b?void 0:b[0])===(null===(d=a.type)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.toUpperCase()),React.cloneElement("string"==typeof a?React.createElement("span",null,a):a,_defineProperty(_defineProperty({onClose:function(){return c(!1)}},g?"voiceText":"voicetext",f),g?"isVoiceStarted":"isvoicestarted",e.toString()))})}export{VoiceRecognitionModal};export default VoiceRecognitionModal;