type Props = { error: Error } export const ErrorMessage = (props: Props) => { return (

{props.error.message}

{props.error.cause as string}

) }