Files
js/components/shared/MintDrawer.tsx
T
613e129b71 Ni/direct deploy (#148)
* 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]>
2022-05-25 16:04:05 -07:00

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>
);
};