Spaces:
Sleeping
Sleeping
Download frontend/src/components/AiHelpperWidget.js from monumkp89/pixelcraft: direct link, hf CLI and curl.
- Browser
- Download file 810 Bytes
-
https://huggingface.co/spaces/monumkp89/pixelcraft/resolve/main/frontend/src/components/AiHelpperWidget.js
- Command line
-
hf download hf://spaces/monumkp89/pixelcraft/frontend/src/components/AiHelpperWidget.js
-
curl -L -o AiHelpperWidget.js https://huggingface.co/spaces/monumkp89/pixelcraft/resolve/main/frontend/src/components/AiHelpperWidget.js
810 Bytes
| import React from 'react'; | |
| import { Phone } from 'lucide-react'; | |
| import '../styles/AiHelpperWidget.css'; | |
| const AiHelpperWidget = () => { | |
| const openVoiceAssistant = () => { | |
| const voiceWindow = window.open( | |
| '/voice-assistant', | |
| 'aiVoiceAssistant', | |
| 'width=600,height=800,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no' | |
| ); | |
| if (voiceWindow) { | |
| voiceWindow.focus(); | |
| } | |
| }; | |
| return ( | |
| <button | |
| type="button" | |
| className="ai-voice-call-button" | |
| onClick={openVoiceAssistant} | |
| aria-label="Open AI Voice Assistant" | |
| title="AI Voice Assistant - Click to start voice call" | |
| > | |
| <Phone size={20} /> | |
| <span>AI Voice Call</span> | |
| </button> | |
| ); | |
| }; | |
| export default AiHelpperWidget; | |