require('./errorPage.less'); const React = require('react'); const UIPage = require('../basePages/uiPage/uiPage.jsx'); import Markdown from '../../../../shared/naturalcrit/markdown.js'; const ErrorIndex = require('./errors/errorIndex.js'); const ErrorPage = ({ brew })=>{ // Retrieving the error text based on the brew's error code from ErrorIndex const errorText = ErrorIndex({ brew })[brew.HBErrorCode.toString()] || ''; return (

{`Error ${brew?.status || '000'}`}

{brew?.text || 'No error text'}


); }; module.exports = ErrorPage;