import { useTranslation } from 'react-i18next' import { memo } from 'react' import OLModal, { OLModalBody, OLModalFooter, OLModalHeader, OLModalTitle, } from '@/features/ui/components/ol/ol-modal' import OLButton from '@/features/ui/components/ol/ol-button' export type GenericMessageModalOwnProps = { title: string message: string } type GenericMessageModalProps = React.ComponentProps & GenericMessageModalOwnProps function GenericMessageModal({ title, message, ...modalProps }: GenericMessageModalProps) { const { t } = useTranslation() return ( {title} {message} modalProps.onHide()}> {t('ok')} ) } export default memo(GenericMessageModal)