Linkify engine error codes and some refactor.

This commit is contained in:
muzam1l
2022-08-09 01:50:29 +05:30
parent 2cf92b908d
commit 5505f0ac87
7 changed files with 207 additions and 156 deletions

23
components/ResultLink.tsx Normal file
View File

@@ -0,0 +1,23 @@
import { FC } from "react";
import { Link } from ".";
interface Props {
result?: string;
}
const ResultLink: FC<Props> = ({ result }) => {
if (!result) return null;
return (
<Link
as="a"
title={result}
href={"https://xrpl.org/transaction-results.html"}
target="_blank"
rel="noopener noreferrer"
>
{result}
</Link>
);
};
export default ResultLink;