index.community/frontend/src/components/molecules/ErrorState.tsx

13 lines
385 B
TypeScript

import { NonIdealState } from "@blueprintjs/core";
import { IconNames } from "@blueprintjs/icons";
import * as React from "react";
interface ErrorStateProps {
description?: string;
}
const ErrorState: React.FC<ErrorStateProps> = ({ description }) => (
<NonIdealState icon={IconNames.ERROR} title="Something went wrong." description={description} />
);
export default ErrorState;