// © XlXi 2021 // Graphictoria 5 import React from "react"; import { Link, useHistory } from "react-router-dom"; import SetTitle from "../Helpers/Title.js"; import { Card, CardTitle } from '../Components/Card.js'; function GenericErrorModal(props) { const history = useHistory(); return ( { props.title }

{ props.children }

{ props.stack !== undefined && process.env.NODE_ENV === 'development' ?
{/* this code is a jumbled mess */} STACK TRACE
{("-").repeat(15)}
{ props.stack }
: null }
Home {/* eslint-disable-next-line */} history.goBack() }>Back
); } class NotFound extends React.Component { componentDidMount() { SetTitle("Not Found"); } render() { const titles = ["OH NOES!!!", "BZZT", "ERROR", "UH OH."]; return ( We've looked far and wide and weren't able to find the page you were looking for. If you believe this is an error, contact us at support@gtoria.net! ); } } class InternalServerError extends React.Component { componentDidMount() { SetTitle("Internal Server Error"); } render() { return ( INTERNAL SERVER ERROR} stack={this.props.stackTrace}> Oops, we ran into an issue while trying to process your request, please try again later in a few minutes. If the issue persists after a few minutes, please contact us at support@gtoria.net. ); } } export { NotFound, InternalServerError, GenericErrorModal };