This button can run any function on any smart contract deployed with thirdweb.
First, it ensures you have a connected wallet and are on the correct network.
const [file, setFile] = useState();export default function Home() {<Web3Button// The contract addresscontractAddress="0x424037abd63d32595bD843791ab015C31c87Cb6d"// Access the contract itself, perform any action you want on it:action={async (contract) =>contract.erc721.mint({name: "Hello world!",// Image can be a File, or any url that points to a file.image: file,description: "Your awesome NFT",})}>Mint NFT</Web3Button>}