import React from "react"; import { connect } from "react-redux"; import styled from "styled-components"; import Button from "components/editorComponents/Button"; import { flushErrors } from "actions/errorActions"; import PageUnavailableImage from "assets/images/404-image.png"; 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 { flushErrors?: any; } const ClientError: React.FC = (props: Props) => { const { flushErrors } = props; return ( Page Unavailable

Whoops something went wrong!

This is embarrassing, please contact Appsmith support for help

); }; export default connect(null, { flushErrors, })(ClientError);