import { ChevronDown } from 'lucide-react'
import { useState } from 'react'
const ASSETS = [
{ id: 'bitcoin', symbol: 'BTC', name: 'Bitcoin' },
{ id: 'ethereum', symbol: 'ETH', name: 'Ethereum' },
{ id: 'solana', symbol: 'SOL', name: 'Solana' },
]
export default function AssetSelector({ selected, onChange }) {
const [isOpen, setIsOpen] = useState(false)
const currentAsset = ASSETS.find(a => a.id === selected) || ASSETS[0]
return (
{isOpen && (
<>
setIsOpen(false)} />
{ASSETS.map((asset) => (
))}
>
)}
)
}