overleaf/services/web/frontend/js/features/dictionary/components/dictionary-modal.tsx
Miguel Serrano 430b7528b2 Merge pull request #8073 from overleaf/ta-td-dictionary
Add UI to Remove Words from Dictionary

GitOrigin-RevId: a28d865e3c968d6fff113237fcf4143b77af046e
2022-05-25 08:09:45 +00:00

25 lines
666 B
TypeScript

import React from 'react'
import DictionaryModalContent from './dictionary-modal-content'
import AccessibleModal from '../../../shared/components/accessible-modal'
import withErrorBoundary from '../../../infrastructure/error-boundary'
type DictionaryModalProps = {
show?: boolean
handleHide: () => void
}
function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
return (
<AccessibleModal
animation
show={show}
onHide={handleHide}
id="dictionary-modal"
bsSize="small"
>
<DictionaryModalContent handleHide={handleHide} />
</AccessibleModal>
)
}
export default withErrorBoundary(DictionaryModal)