mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 20:29:58 -05:00
27 lines
686 B
JavaScript
27 lines
686 B
JavaScript
|
import React from 'react'
|
||
|
import { Modal } from 'react-bootstrap'
|
||
|
import PropTypes from 'prop-types'
|
||
|
import HotkeysModalContent from './hotkeys-modal-content'
|
||
|
|
||
|
function HotkeysModal({ handleHide, show, trackChangesVisible = false }) {
|
||
|
const isMac = /Mac/i.test(navigator.platform)
|
||
|
|
||
|
return (
|
||
|
<Modal bsSize="large" onHide={handleHide} show={show}>
|
||
|
<HotkeysModalContent
|
||
|
handleHide={handleHide}
|
||
|
isMac={isMac}
|
||
|
trackChangesVisible={trackChangesVisible}
|
||
|
/>
|
||
|
</Modal>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
HotkeysModal.propTypes = {
|
||
|
handleHide: PropTypes.func.isRequired,
|
||
|
show: PropTypes.bool.isRequired,
|
||
|
trackChangesVisible: PropTypes.bool
|
||
|
}
|
||
|
|
||
|
export default HotkeysModal
|