dictionary-modal.tsx 666 B

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