dictionary-modal.tsx 630 B

12345678910111213141516171819202122232425
  1. import React from 'react'
  2. import DictionaryModalContent from './dictionary-modal-content'
  3. import withErrorBoundary from '../../../infrastructure/error-boundary'
  4. import OLModal from '@/features/ui/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. size="sm"
  17. >
  18. <DictionaryModalContent handleHide={handleHide} />
  19. </OLModal>
  20. )
  21. }
  22. export default withErrorBoundary(DictionaryModal)