require('./errorPage.less'); const React = require('react'); const createClass = require('create-react-class'); const _ = require('lodash'); const cx = require('classnames'); const UIPage = require('../basePages/uiPage/uiPage.jsx'); const Markdown = require('../../../../shared/naturalcrit/markdown.js'); const ErrorIndex = require('./errors/errorIndex.js'); const ErrorPage = createClass({ displayName : 'ErrorPage', getDefaultProps : function() { return { ver : '0.0.0', errorId : '', text : '# Oops \n We could not find a brew with that id. **Sorry!**', error : {} }; }, render : function(){ const errorText = ErrorIndex(this.props)[this.props.brew.HBErrorCode.toString()] || ''; return

{`Error ${this.props.brew.status || '000'}`}

{this.props.brew.text || 'No error text'}


; } }); module.exports = ErrorPage;