import React, { ReactNode } from 'react' import { useRecoilState } from 'recoil' import { shortcutsState } from '../../store/Atoms' import Modal from '../shared/Modal' interface Shortcut { children: ReactNode content: string } function ShortCut(props: Shortcut) { const { children, content } = props return (
{content}
{children}
) } export default function ShortcutsModal() { const [shortcutsShow, setShortcutState] = useRecoilState(shortcutsState) const shortcutStateHandler = () => { setShortcutState(false) } return (

Hold Cmd/Ctrl

Cmd/Ctrl + Z

Space & Drag

Hold Tab

Esc

Esc

Shift + R

[

]

Shift + D

H

) }