import type React from "react"; const ResultBlock: React.FC<{ error?: string; result?: any }> = ({ error, result, }) => (
{error ?

Error: {error}

: null}
      {typeof result === "object" ? JSON.stringify(result, null, 2) : result}
    
); export default ResultBlock;