import { Button, Kbd, KbdKey, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, } from "@nextui-org/react"; import { useAppContext } from "../contexts/AppContext"; import { KeybindManager } from "../lib/keybinds"; export const KeybindModal = () => { const { showKeybinds, setShowKeybinds } = useAppContext(); return ( {(onClose) => ( <> Keybinds {Object.entries(KeybindManager.getKeybinds()).map( ([name, kbs]) => (
{name} {kbs.map((kb) => ( a)} > {kb.key} ))}
) )}
)}
); };