import PropTypes from 'prop-types' import { Trans, useTranslation } from 'react-i18next' import HotkeysModalBottomText from './hotkeys-modal-bottom-text' import OLModal, { OLModalBody, OLModalFooter, OLModalHeader, OLModalTitle, } from '@/features/ui/components/ol/ol-modal' import OLButton from '@/features/ui/components/ol/ol-button' import OLRow from '@/features/ui/components/ol/ol-row' import OLCol from '@/features/ui/components/ol/ol-col' export default function HotkeysModal({ animation = true, handleHide, show, 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')}

)}
{t('close')}
) } HotkeysModal.propTypes = { animation: PropTypes.bool, isMac: PropTypes.bool, show: PropTypes.bool.isRequired, handleHide: PropTypes.func.isRequired, trackChangesVisible: PropTypes.bool, } function Hotkey({ combination, description }) { return (
{combination} {description}
) } Hotkey.propTypes = { combination: PropTypes.string.isRequired, description: PropTypes.string.isRequired, }