import React from "react"; import { Tile } from "@carbon/react"; import { useTranslation } from "react-i18next"; import styles from "./error-state.scss"; interface ErrorStateProps { error: any; headerTitle: string; } export const ErrorState: React.FC = ({ error, headerTitle, }) => { const { t } = useTranslation(); return (

{headerTitle}

{t("error", "Error")} {`${error?.response?.status}: `} {error?.response?.statusText}

{t( "errorCopy", "Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above." )}

); };