import { Carousel, Divider, Drawer, Modal } from "antd"; import { CarouselRef } from "antd/lib/carousel"; import { useEffect, useRef, useState } from "react"; import { GlobalHotKeys, KeyMap } from "react-hotkeys"; import { BsThreeDots } from "react-icons/bs"; import { FaArrowLeft, FaArrowRight, FaClock, FaLink, FaPlus, FaUserCheck, } from "react-icons/fa"; import { FcGoogle } from "react-icons/fc"; import { useKeyboardContext } from "../../contexts/keyboardContext"; import Rooms from "../demo/Rooms"; import Image from "next/image"; import Cookies from "js-cookie"; import { CookieType } from "../../helpers/cookies"; export default function ShortcutHelpModal() { const [visible, setVisible] = useState(false); const carouselRef = useRef(); const { isRecording } = useKeyboardContext(); useEffect(() => { // if have the specific cookie, then don't show the modal, otherwise show the modal const cookie = Cookies.get(CookieType.TEAM_SHORTCUTS_ONBOARDING); if (!cookie) { setVisible(true); Cookies.set(CookieType.TEAM_SHORTCUTS_ONBOARDING, "true"); } }, []); 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={750} >
carouselRef.current.prev()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" /> Live Collaboration Building the habit of{" "} {" "} resolving issues on the spot {" "}

through seamless communication.
carouselRef.current.next()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl" />
Hop into Office Rooms Work with your closest teammates in the{" "} hallway or corner throughout the day.

Have lunch and take breaks in the{" "} kitchen.
{/* spontaneous bug room */} {/* header */} {/* meeting details */} bug fixing were just fixing that jsx bug thats a paiiinnnn {/* badges and tags */} blockers engineering {/* room status */} live {/* room attachments */} {/* footer */} profile profile Arjun and Liam {" "} Join an Official Room Click on the{" "} {" "} to create a

Meet (if your team has GSuite).
Spontaneous, scheduled, or recurring rooms. or
{"Cross Collaborate"} Walk into the office with clarity of what

team conversations{" "} {" "} are going on across the hall.
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 shrink-0" /> Drawer Organize your desk and{" "} focus on today's priorities. carouselRef.current.next()} className="hover:cursor-pointer bg-teal-600 text-white p-1 rounded-full text-xl shrink-0" /> Add Your Drawer Paste{" "} important links:{" "} Jira tickets, ppts, drive files/folders, github, code snippets. {" "} {" "} +{" "} {" "} Team Drawer Make sure your team has

what they need from you.
Keep this clean to stay focused.
{"You Decide What You Keep"} Last month's mess is weighing you down. Only see{" "} this week's files/links {" "} to keep

your head clear.
NOTE: this is{" "} NOT file storage. They are merely bookmarked links

to your source of truth (Google Drive, Github...).
); }