2022-01-29 22:04:52 +00:00
|
|
|
import React from "react";
|
|
|
|
import { useParams } from "react-router-dom";
|
|
|
|
import TransactionPageContent from "./TransactionPageContent";
|
2021-10-24 04:04:18 +00:00
|
|
|
|
2021-07-01 18:21:40 +00:00
|
|
|
const Transaction: React.FC = () => {
|
2021-11-25 09:28:45 +00:00
|
|
|
const { txhash } = useParams();
|
|
|
|
if (txhash === undefined) {
|
|
|
|
throw new Error("txhash couldn't be undefined here");
|
|
|
|
}
|
2022-01-29 22:40:26 +00:00
|
|
|
return <TransactionPageContent txHash={txhash} />;
|
2021-07-01 18:21:40 +00:00
|
|
|
};
|
|
|
|
|
2021-11-25 09:28:45 +00:00
|
|
|
export default Transaction;
|