import { Carousel, Drawer, Modal } from "antd"; import { useRef, useState } from "react"; import { GlobalHotKeys, KeyMap } from "react-hotkeys"; import { FaArrowLeft, FaArrowRight, FaUserCheck } from "react-icons/fa"; import { useKeyboardContext } from "../../contexts/keyboardContext"; export default function ShortcutHelpModal() { const [visible, setVisible] = useState(false); const carouselRef = useRef(); const { isRecording } = useKeyboardContext(); function handleShowModal() { setVisible(true); } function handleDismissModal() { setVisible(false); } const keyMap: KeyMap = { SHOW_HELP_MODAL: { name: "show help modal", sequence: "/", action: "keyup", }, }; const handlers = { SHOW_HELP_MODAL: handleShowModal }; return ( <> {/* fixed help on bottom left */} Help {/* */} } zIndex={5} >
carouselRef.current.prev()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" /> Select a Teammate Type numbers on your keyboard. ... carouselRef.current.next()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" />
carouselRef.current.prev()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" /> Send an Audio Message Press and hold R. Try it now! carouselRef.current.next()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" />

3

4

); }