import React from "react"; import { connect } from "react-redux"; import styled from "styled-components"; import { APPLICATIONS_URL } from "constants/routes"; import Button from "components/editorComponents/Button"; import { flushErrorsAndRedirect } from "actions/errorActions"; import PageUnavailableImage from "assets/images/404-image.png"; import { BACK_TO_HOMEPAGE, createMessage, PAGE_NOT_FOUND, } from "constants/messages"; const Wrapper = styled.div` text-align: center; margin-top: 5%; .bold-text { font-weight: ${(props) => props.theme.fontWeights[3]}; font-size: 24px; } .page-unavailable-img { width: 35%; } .button-position { margin: auto; } `; interface Props { flushErrorsAndRedirect?: any; } function PageNotFound(props: Props) { const { flushErrorsAndRedirect } = props; return ( Page Unavailable

{createMessage(PAGE_NOT_FOUND)}

Either this page doesn't exist, or you don't have access to{" "}
this page.

); } export default connect(null, { flushErrorsAndRedirect, })(PageNotFound);