-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.tsx
More file actions
41 lines (39 loc) · 1.59 KB
/
footer.tsx
File metadata and controls
41 lines (39 loc) · 1.59 KB
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
"use client";
import { ArrowUpRight } from "lucide-react";
import { contracts, type SupportedChainId } from "../lib/contracts";
import { blockExplorers } from "../lib/contracts";
import { buttonVariants } from "../components/ui/button";
// import { useAccount } from "wagmi";
import Link from "next/link";
import { DarkModeToggle } from "../components/DarkModeToggle";
import { DevModeToggle } from "../components/DevModeToggle";
// import { useCoinbaseWallet } from "../context/CoinbaseWalletContext";
export const Footer = () => {
// const { chainId } = useAccount();
const chainId: SupportedChainId = 84532;
return (
<div className="flex flex-col w-full space-between items-center justify-center pt-16 pb-8 pr-8 pl-8 gap-2">
<div className="flex flex-row flex-wrap gap-2 items-center justify-center">
<Link
href={`${blockExplorers[chainId as SupportedChainId]?.url}/address/${contracts.gamesContract[chainId as SupportedChainId]?.address}`}
className={`${buttonVariants({ variant: "link" })} w-fit`}
target="_blank"
>
Games Contract <ArrowUpRight />
</Link>
<Link
href={`${blockExplorers[chainId as SupportedChainId]?.url}/address/${contracts.nftContract[chainId as SupportedChainId]?.address}`}
className={`${buttonVariants({ variant: "link" })} w-fit`}
target="_blank"
>
GameWin NFT Contract <ArrowUpRight />
</Link>
</div>
<div className="flex flex-row flex-wrap gap-2 items-center justify-center">
<DarkModeToggle />
<a href="https://github.com/jgresham/based-chess">Based Chess Github</a>
<DevModeToggle />
</div>
</div>
);
};