Linkify engine error codes and some refactor.
This commit is contained in:
23
components/ResultLink.tsx
Normal file
23
components/ResultLink.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user