import { Button, ButtonProps, Callout } from "@blueprintjs/core"; type Args = { buttonText?: string, error: Error, resetErrorBoundary?: ButtonProps["onClick"] }; function ErrorCallout({ buttonText = "Go back", error, resetErrorBoundary = undefined }: Args): JSX.Element { return (

{error.message}

{resetErrorBoundary !== undefined &&