import React, { Component } from 'react'; import Breadcrumbs from './Breadcrumbs'; import { withRouter } from 'react-router-dom'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; import * as Blockly from 'blockly' class NotFound extends Component { componentDidMount(){ // Ensure that Blockly.setLocale is adopted in the component. // Otherwise, the text will not be displayed until the next update of the component. this.forceUpdate(); } render() { return (
{Blockly.Msg.notfound_head} {Blockly.Msg.notfound_text} {this.props.button ? : }
); }; } export default withRouter(NotFound);