Copy
Ask AI
import { useCreateListingModal } from "@0xsequence/marketplace-sdk/react";
## Into your React component:
const { show: showListModal } = useCreateListingModal({ onError });
const onClickList = () => {
showListModal({
collectionAddress,
chainId,
collectibleId,
orderbookKind,
});
};
return <button onClick={onClickList}>List</button>
useCreateListingModal
* params
Show child attributes
Show child attributes
Copy
Ask AI
interface useCreateListingModal {
onSuccess?: ({ hash, orderId }: {
hash?: Hash;
orderId?: string;
}) => void;
onError?: (error: Error) => void;
}
* return properties