import { Menu } from '@headlessui/react' import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid' import useMangoStore from '../stores/useMangoStore' import { WALLET_PROVIDERS } from '../hooks/useWallet' export default function WalletSelect({ isPrimary = false }) { const setMangoStore = useMangoStore((s) => s.set) const handleSelectProvider = (url) => { setMangoStore((state) => { state.wallet.providerUrl = url }) } return ( {({ open }) => ( <> {open ? ( ) : ( )} {WALLET_PROVIDERS.map(({ name, url, icon }) => ( ))} )} ) }