2021-10-12 04:47:46 -04:00
|
|
|
import { memo } from 'react'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
import Icon from '../../../shared/components/icon'
|
2024-10-23 03:32:40 -04:00
|
|
|
import OLNotification from '@/features/ui/components/ol/ol-notification'
|
|
|
|
import { bsVersion } from '@/features/utils/bootstrap-5'
|
|
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
2021-10-12 04:47:46 -04:00
|
|
|
|
|
|
|
function PdfCodeCheckFailedNotice() {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
2024-10-23 03:32:40 -04:00
|
|
|
<OLNotification
|
|
|
|
type="error"
|
|
|
|
content={
|
|
|
|
<>
|
|
|
|
<BootstrapVersionSwitcher
|
|
|
|
bs3={
|
|
|
|
<>
|
|
|
|
<Icon type="exclamation-triangle" fw />{' '}
|
|
|
|
</>
|
|
|
|
}
|
|
|
|
/>
|
2021-10-12 04:47:46 -04:00
|
|
|
{t('code_check_failed_explanation')}
|
2024-10-23 03:32:40 -04:00
|
|
|
</>
|
|
|
|
}
|
|
|
|
className={bsVersion({ bs5: 'm-0', bs3: 'mb-2' })}
|
|
|
|
/>
|
2021-10-12 04:47:46 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default memo(PdfCodeCheckFailedNotice)
|