2022-05-24 07:21:25 -04:00
|
|
|
import React from 'react'
|
|
|
|
import DictionaryModalContent from './dictionary-modal-content'
|
|
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
2024-10-11 05:22:38 -04:00
|
|
|
import OLModal from '@/features/ui/components/ol/ol-modal'
|
2022-05-24 07:21:25 -04:00
|
|
|
|
|
|
|
type DictionaryModalProps = {
|
|
|
|
show?: boolean
|
|
|
|
handleHide: () => void
|
|
|
|
}
|
|
|
|
|
|
|
|
function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
|
|
|
|
return (
|
2024-10-11 05:22:38 -04:00
|
|
|
<OLModal
|
2022-05-24 07:21:25 -04:00
|
|
|
animation
|
|
|
|
show={show}
|
|
|
|
onHide={handleHide}
|
|
|
|
id="dictionary-modal"
|
2024-10-11 05:22:38 -04:00
|
|
|
size="sm"
|
2022-05-24 07:21:25 -04:00
|
|
|
>
|
|
|
|
<DictionaryModalContent handleHide={handleHide} />
|
2024-10-11 05:22:38 -04:00
|
|
|
</OLModal>
|
2022-05-24 07:21:25 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default withErrorBoundary(DictionaryModal)
|