overleaf/services/web/frontend/js/features/dictionary/components/dictionary-modal.tsx
Rebeka Dekany f8efc3e2ae Merge pull request #20740 from overleaf/rd-ide-offcanvas
[web] Implement the editor's left menu in Offcanvas

GitOrigin-RevId: 999e995d664b1dc958f56643f05e95b8aa2d6290
2024-10-14 11:09:31 +00:00

25 lines
630 B
TypeScript

import React from 'react'
import DictionaryModalContent from './dictionary-modal-content'
import withErrorBoundary from '../../../infrastructure/error-boundary'
import OLModal from '@/features/ui/components/ol/ol-modal'
type DictionaryModalProps = {
show?: boolean
handleHide: () => void
}
function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
return (
<OLModal
animation
show={show}
onHide={handleHide}
id="dictionary-modal"
size="sm"
>
<DictionaryModalContent handleHide={handleHide} />
</OLModal>
)
}
export default withErrorBoundary(DictionaryModal)