Files
Verso/services/web/frontend/js/features/pdf-preview/components/pdf-code-check-failed-banner.tsx
T
Davinder SinghandCopybot 84cdbfc12f Tearing down of Error Logs and pdf preview in editor (#31267)
GitOrigin-RevId: 05b2c980d874de801ffcdadb57dd9da9d983225c
2026-02-11 09:06:38 +00:00

23 lines
653 B
TypeScript

import MaterialIcon from '@/shared/components/material-icon'
import { useTranslation } from 'react-i18next'
import { useDetachCompileContext as useCompileContext } from '@/shared/context/detach-compile-context'
export default function PdfCodeCheckFailedBanner() {
const { t } = useTranslation()
const { codeCheckFailed } = useCompileContext()
if (!codeCheckFailed) {
return null
}
return (
<div className="pdf-code-check-failed-banner-container">
<div className="pdf-code-check-failed-banner">
<MaterialIcon unfilled type="picture_as_pdf" />
{t('code_check_failed_explanation')}
</div>
</div>
)
}