import React from 'react' import PropTypes from 'prop-types' import { useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' import PreviewLogsPaneEntry from './preview-logs-pane-entry' function PreviewFirstErrorPopUp({ logEntry, onGoToErrorLocation, onViewLogs, onClose }) { const { t } = useTranslation() function handleGoToErrorLocation() { const { file, line, column } = logEntry onGoToErrorLocation({ file, line, column }) } return (