import { memo } from 'react' import { useTranslation } from 'react-i18next' import PropTypes from 'prop-types' import PreviewLogsPaneEntry from '../../preview/components/preview-logs-pane-entry' PdfValidationIssue.propTypes = { name: PropTypes.string.isRequired, issue: PropTypes.any, } function PdfValidationIssue({ issue, name }) { const { t } = useTranslation() switch (name) { case 'sizeCheck': return (
{t('project_too_large_please_reduce')}
} entryAriaLabel={t('validation_issue_entry_description')} level="error" /> ) case 'conflictedPaths': return (
{t('following_paths_conflict')}
} entryAriaLabel={t('validation_issue_entry_description')} level="error" /> ) case 'mainFile': return ( ) default: return null } } export default memo(PdfValidationIssue)