2021-07-21 19:06:51 +00:00
|
|
|
import React from "react";
|
2021-07-21 18:13:18 +00:00
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
2021-08-08 06:51:21 +00:00
|
|
|
import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight";
|
2021-11-18 19:01:11 +00:00
|
|
|
import TransactionAddress from "./TransactionAddress";
|
2021-07-21 18:13:18 +00:00
|
|
|
import AddressHighlighter from "./AddressHighlighter";
|
|
|
|
import DecoratedAddressLink from "./DecoratedAddressLink";
|
2021-11-18 19:01:11 +00:00
|
|
|
import { InternalOperation } from "../types";
|
2021-07-21 18:13:18 +00:00
|
|
|
|
|
|
|
type InternalCreateProps = {
|
2021-07-21 19:06:51 +00:00
|
|
|
internalOp: InternalOperation;
|
2021-07-21 18:13:18 +00:00
|
|
|
};
|
|
|
|
|
2021-12-17 02:17:13 +00:00
|
|
|
const InternalCreate: React.FC<InternalCreateProps> = ({ internalOp }) => (
|
2021-11-18 18:51:08 +00:00
|
|
|
<div className="flex items-baseline space-x-1 whitespace-nowrap">
|
|
|
|
<span className="text-gray-500">
|
|
|
|
<FontAwesomeIcon icon={faAngleRight} size="1x" /> CREATE
|
|
|
|
</span>
|
|
|
|
<span>Contract</span>
|
|
|
|
<div className="flex items-baseline">
|
|
|
|
<AddressHighlighter address={internalOp.to}>
|
2021-12-17 02:17:13 +00:00
|
|
|
<DecoratedAddressLink address={internalOp.to} creation />
|
2021-11-18 18:51:08 +00:00
|
|
|
</AddressHighlighter>
|
|
|
|
</div>
|
|
|
|
<span className="flex items-baseline text-gray-400">
|
2021-12-17 02:17:13 +00:00
|
|
|
(Creator: <TransactionAddress address={internalOp.from} />)
|
2021-11-18 18:51:08 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
);
|
2021-07-21 18:13:18 +00:00
|
|
|
|
2021-11-18 18:51:08 +00:00
|
|
|
export default InternalCreate;
|