// @flow import * as React from "react"; import Container from "../../components/Container.react"; import Page from "../../components/Page/Page.react"; import Header from "../../components/Header/Header.react"; import Icon from "../../components/Icon/Icon.react"; import Button from "../../components/Button/Button.react"; export type Props = {| +title?: string, +subtitle?: string, +details?: string, +action?: string, |}; function DefaultErrorPage(props: Props): React.Node { const _onBackClick = ( event: SyntheticMouseEvent ): boolean => { window.history.back(); event.preventDefault(); return true; }; const { title = "Error", subtitle = "Sorry an unkown error occurred", details, action = "Go back", } = props; return ( {title} {subtitle} {details && ( {details} )} ); } export default DefaultErrorPage;