* Add TokenSupply * Add TokenMint * Fix wrong image on Brave Wallet (#147) * Move drawer * Add mint form for erc721/erc1155 * wip * fix minting * fix types Co-authored-by: Nacho Iacovino <[email protected]> Co-authored-by: Nacho Iacovino <[email protected]>
28 lines
563 B
TypeScript
28 lines
563 B
TypeScript
import { ValidContractInstance } from "@thirdweb-dev/sdk";
|
|
import { MintForm } from "components/contract-pages/forms/mint";
|
|
import { Drawer } from "tw-components";
|
|
|
|
interface IMintDrawer {
|
|
contract?: ValidContractInstance;
|
|
isOpen: boolean;
|
|
onClose: () => void;
|
|
}
|
|
|
|
export const MintDrawer: React.FC<IMintDrawer> = ({
|
|
isOpen,
|
|
onClose,
|
|
contract,
|
|
}) => {
|
|
return (
|
|
<Drawer
|
|
allowPinchZoom
|
|
preserveScrollBarGap
|
|
size="lg"
|
|
onClose={onClose}
|
|
isOpen={isOpen}
|
|
>
|
|
<MintForm contract={contract} />
|
|
</Drawer>
|
|
);
|
|
};
|