import { FC } from "react"; export const SimpleErrorElement: FC<{ error: Error }> = ({ error }) => { return (
Error Name: {error?.name}
Error Message {error?.message}
Error Stack {error?.stack?.split("\n").map((t, i) => ( {t} ))}
JSON: {JSON.stringify(error)}
); };