import React, { Fragment } from 'react' import { Menu, Transition } from '@headlessui/react' import { ChevronDownIcon } from '@heroicons/react/solid' import { useWallet, Wallet } from '@solana/wallet-adapter-react' export const WalletSelect: React.FC<{ wallets: Wallet[] }> = ({ wallets }) => { const { select } = useWallet() if (!wallets?.length) { return null } return ( {({ open }) => ( <> {wallets?.map((wallet, index) => ( ))} )} ) }