otterscan/src/Transaction.tsx

14 lines
386 B
TypeScript

import React from "react";
import { useParams } from "react-router-dom";
import TransactionPageContent from "./TransactionPageContent";
const Transaction: React.FC = () => {
const { txhash } = useParams();
if (txhash === undefined) {
throw new Error("txhash couldn't be undefined here");
}
return <TransactionPageContent txHash={txhash} />;
};
export default Transaction;