import React from 'react' import { Button, Modal, Row, Col } from 'react-bootstrap' import PropTypes from 'prop-types' import { Trans, useTranslation } from 'react-i18next' function HotkeysModalContent({ handleHide, isMac = false, trackChangesVisible = false }) { const { t } = useTranslation() const ctrl = isMac ? 'Cmd' : 'Ctrl' return ( <> {t('hotkeys')}

{t('common')}

{t('navigation')}

{t('editing')}

{t('autocomplete')}

}} />

{trackChangesVisible && ( <>

{t('review')}

)}
) } HotkeysModalContent.propTypes = { isMac: PropTypes.bool, handleHide: PropTypes.func.isRequired, trackChangesVisible: PropTypes.bool } function Hotkey({ combination, description }) { return (
{combination} {description}
) } Hotkey.propTypes = { combination: PropTypes.string.isRequired, description: PropTypes.string.isRequired } export default HotkeysModalContent