import React from 'react' import PropTypes from 'prop-types' import Modal from './Modal' class ShortcutsModal extends React.Component { static propTypes = { isOpen: PropTypes.bool.isRequired, onOpenToggle: PropTypes.func.isRequired, } render() { const help = [ { key: "?", text: "Shortcuts menu" }, { key: "o", text: "Open modal" }, { key: "e", text: "Export modal" }, { key: "d", text: "Data Sources modal" }, { key: "s", text: "Style Settings modal" }, { key: "i", text: "Toggle inspect" }, { key: "m", text: "Focus map" }, { key: "!", text: "Debug modal" }, ] return

Press ESC to lose focus of any active elements, then press one of:

} } export default ShortcutsModal