Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
export const embedCode = (clientId: string) => `\
import { createThirdwebClient } from "thirdweb";
import { PayEmbed } from "thirdweb/react";
import { BuyWidget } from "thirdweb/react";
import { ethereum } from "thirdweb/chains";

const client = createThirdwebClient({
clientId: "${clientId}",
});

export default function App() {
return <PayEmbed client={client} />;
return (
<BuyWidget
client={client}
chain={ethereum}
amount="0.1"
/>
);
}`;

export const sdkCode = (clientId: string) => `\
Expand Down
Loading