dictionary-modal.tsx 666 B

12345678910111213141516171819202122232425
  1. import React from 'react'
  2. import DictionaryModalContent from './dictionary-modal-content'
  3. import AccessibleModal from '../../../shared/components/accessible-modal'
  4. import withErrorBoundary from '../../../infrastructure/error-boundary'
  5. type DictionaryModalProps = {
  6. show?: boolean
  7. handleHide: () => void
  8. }
  9. function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
  10. return (
  11. <AccessibleModal
  12. animation
  13. show={show}
  14. onHide={handleHide}
  15. id="dictionary-modal"
  16. bsSize="small"
  17. >
  18. <DictionaryModalContent handleHide={handleHide} />
  19. </AccessibleModal>
  20. )
  21. }
  22. export default withErrorBoundary(DictionaryModal)