import React from "react" ; import { RoutePlugin } from "@webiny/app/plugins/RoutePlugin" ; import { Route , Link , RouteChildrenProps } from "@webiny/react-router" ; import { ReactComponent as WebinyLogo } from "~/images/webiny.svg" ; import Layout from "~/components/Layout" ; function NotFound ( props ) { return ( < Layout className = { "not-found" } > < a href = { "https://www.webiny.com" } target = "_blank" rel = { "noreferrer" } > < WebinyLogo className = { "logo" } /> < /a> < h1 > Page not found < /h1> < h2 > Unfortunately , nothing was found at < code > { props . match . url } < /code>. < /h2> < Link to = { "/" } > & larr ; Back < /Link> < /Layout>); } export default new RoutePlugin ( { route : < Route path = "*" exact component = { NotFound } / > } ) ;