import { WalletMultiButton, WalletDisconnectButton, WalletModalProvider, } from "@solana/wallet-adapter-react-ui"; import { useWallet } from "@solana/wallet-adapter-react"; import { useSmallScreen, useSolanaCongested } from "../../../hooks"; import { Logo } from "./Logo"; import { RpcSettings } from "../../RpcSettings"; import { Congested } from "./Congested"; import clsx from "clsx"; const TopBar = ({ setCustomRpc }: { setCustomRpc: (url: string) => void }) => { const { connected } = useWallet(); const smallScreen = useSmallScreen(); const { data: congested } = useSolanaCongested(); if (smallScreen) { return (