import { Carousel, Divider, Drawer, Modal } from "antd"; import { CarouselRef } from "antd/lib/carousel"; 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} width={700} >
carouselRef.current.prev()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" /> Audio Messages carouselRef.current.next()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" /> Select a Teammate Type numbers on your keyboard. ... Send an Audio Message Press and hold R.{" "} Your teammate will

hear you instantly
{" "} if they are online.
As if they were across the table.
Play Incoming Message Select teammate and then press SPACE

to listen to the last conversation.
{/* Deselect teammate by pressing

ESC.
*/}
Clear Your View Deselect teammate and

stop playing audio by pressing ESC.
carouselRef.current.prev()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" /> Audio Messages carouselRef.current.next()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" /> Select a Teammate Type numbers on your keyboard. ... Send an Audio Message Press and hold R. Your teammate will hear you instantly if they are logged in. As if you were speaking over your shoulder. No notifications. No scrolling. No reading. Play Incoming Message Select teammate and then press SPACE

to listen to the last conversation.
{/* Deselect teammate by pressing

ESC.
*/}
Clear Your View Deselect teammate and

stop playing audio by pressing ESC.
carouselRef.current.prev()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl shrink-0" /> Manage Your Drawer Paste important links: Jira tickets, ppts, drive files, github, code snippets. {" "} {" "} +{" "} {" "} carouselRef.current.next()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl shrink-0" />
); }