useCancelListing
Hook for canceling an existing auction or listing on a Marketplace contract.
Auction listings cannot be canceled if a bid has been placed
This hook is only for Marketplace contracts.
For Marketplace V3
contracts, use useCancelDirectListing or useCancelEnglishAuction instead.
Mutation object to cancel a listing.
The error property is set if the listing is not active, or was not created by the wallet.
The mutation function takes an object with the following properties as an argument:
The ID of the listing you want to cancel.
The type of listing you are canceling. Either ListingType.Direct (0) or ListingType.Auction (1).