import { ChevronDownIcon, QuestionMarkCircleIcon } from '@heroicons/react/solid' import Image from 'next/image' import mangoStore from '../store/mangoStore' type TokenSelectProps = { tokenSymbol: string | undefined showTokenList: (x: any) => void type: 'input' | 'output' } const TokenSelect = ({ tokenSymbol, showTokenList, type, }: TokenSelectProps) => { const group = mangoStore((s) => s.group) const jupiterTokens = mangoStore((s) => s.jupiterTokens) if (!group) return null let logoURI if (jupiterTokens.length) { logoURI = jupiterTokens.find((t) => t.symbol === tokenSymbol)!.logoURI } return (
showTokenList(type)} className="default-transition flex h-full items-center rounded-lg rounded-r-none p-3 text-th-fgd-2 hover:cursor-pointer hover:bg-th-bkg-2 hover:text-th-fgd-1" role="button" >
{logoURI ? ( ) : ( )}
{tokenSymbol}
) } export default TokenSelect