import { Button, Modal, Row, Col } from 'react-bootstrap'
import PropTypes from 'prop-types'
import { Trans, useTranslation } from 'react-i18next'
import AccessibleModal from '../../../shared/components/accessible-modal'
import HotkeysModalBottomText from './hotkeys-modal-bottom-text'
export default function HotkeysModal({
animation = true,
handleHide,
show,
isMac = false,
trackChangesVisible = false,
newSourceEditor = false,
}) {
const { t } = useTranslation()
const goToLineSuffix = newSourceEditor ? 'Shift + L' : 'L'
const ctrl = isMac ? 'Cmd' : 'Ctrl'
const modalTitle = newSourceEditor
? `${t('hotkeys')} (Source editor)`
: `${t('hotkeys')} (Legacy source editor)`
return (
{t('common')}
{t('navigation')}
{t('editing')}
{t('autocomplete')}
{t('review')}