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