forked from swing-xyz/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.tsx
41 lines (34 loc) · 1.33 KB
/
page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import "@swing.xyz/ui/theme.css";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import Sidebar from "components/Sidebar";
import { Button } from "components/ui/button";
import { WagmiProvider } from "components/WagmiProvider";
import { ConnectWallet } from "components/ConnectWallet";
import { SwingSdkProvider, Stake } from "@swing.xyz/ui";
export default function StakePage() {
return (
<SwingSdkProvider projectId="example-staking-widget-nextjs">
<WagmiProvider>
<Sidebar />
<main className="container relative flex flex-col w-full min-h-screen overflow-y-auto">
<div className="flex justify-end p-6 space-x-4">
<ConnectWallet />
<Button className="space-x-2" variant="outline" asChild>
<a href="https://github.com/polkaswitch/examples">
<FontAwesomeIcon size="lg" icon={faGithub} />
<span>Fork on Github</span>
</a>
</Button>
</div>
<div className="flex items-center justify-center h-full">
<Stake
title="Stake with MetaWallet"
projectId="example-staking-widget-nextjs"
/>
</div>
</main>
</WagmiProvider>
</SwingSdkProvider>
);
}