pdf-code-check-failed-notice.jsx 870 B

123456789101112131415161718192021222324252627282930
  1. import { memo } from 'react'
  2. import { useTranslation } from 'react-i18next'
  3. import Icon from '../../../shared/components/icon'
  4. import OLNotification from '@/features/ui/components/ol/ol-notification'
  5. import { bsVersion } from '@/features/utils/bootstrap-5'
  6. import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
  7. function PdfCodeCheckFailedNotice() {
  8. const { t } = useTranslation()
  9. return (
  10. <OLNotification
  11. type="error"
  12. content={
  13. <>
  14. <BootstrapVersionSwitcher
  15. bs3={
  16. <>
  17. <Icon type="exclamation-triangle" fw />{' '}
  18. </>
  19. }
  20. />
  21. {t('code_check_failed_explanation')}
  22. </>
  23. }
  24. className={bsVersion({ bs5: 'm-0', bs3: 'mb-2' })}
  25. />
  26. )
  27. }
  28. export default memo(PdfCodeCheckFailedNotice)