{state === "resolved" && result.range.length === 0 && (
no history found.
)}
{state !== "rejected" && result.range.length > 0 &&
(
<>
>
)}
{state !== "rejected"
? (
{result.getSnapshot(result.range[index]).join("\n")}
)
: (
{`Error: ${JSON.stringify(result)}`}
)}
>
);
};