import { Menu } from '@headlessui/react' import { ChevronDownIcon, ChevronUpIcon, CheckCircleIcon, } from '@heroicons/react/solid' import useMangoStore from '../stores/useMangoStore' import { WALLET_PROVIDERS, DEFAULT_PROVIDER } from '../hooks/useWallet' import useLocalStorageState from '../hooks/useLocalStorageState' export default function WalletSelect({ isPrimary = false }) { const setMangoStore = useMangoStore((s) => s.set) const [savedProviderUrl] = useLocalStorageState( 'walletProvider', DEFAULT_PROVIDER.url ) const handleSelectProvider = (url) => { setMangoStore((state) => { state.wallet.providerUrl = url }) } return (
) }