import { Connected } from '@coinbase/onchainkit/connected';
import { Transaction, TransactionButton } from '@coinbase/onchainkit/transaction';
export default function MintFlow() {
return (
<div className="space-y-4">
<h1>Mint Your NFT</h1>
<Connected
connecting={<div>Preparing wallet...</div>}
fallback={
<div className="border rounded-lg p-6 text-center">
<h2>Connect to get started</h2>
<p className="text-gray-600 mb-4">
You need to connect your wallet to mint an NFT
</p>
</div>
}
>
<div className="border rounded-lg p-6">
<h2>Ready to mint!</h2>
<p className="text-gray-600 mb-4">
Your wallet is connected. Click below to mint your NFT.
</p>
<Transaction
calls={[
{
to: '0x...',
data: '0x...',
},
]}
>
<TransactionButton>Mint NFT</TransactionButton>
</Transaction>
</div>
</Connected>
</div>
);
}