import { useState } from 'react'; import { Combobox, Flex, Icon, IconName } from '@/components'; type Item = { id: number; label: string; icon: IconName }; const Items: Item[] = [ { id: 1, label: 'Option 1', icon: 'branch' }, { id: 2, label: 'Option 2', icon: 'ethereum' }, { id: 3, label: 'Option 3', icon: 'metamask' }, ]; export const ComboboxTest: React.FC = () => { const selected = useState(); return ( {({ Field, Options }) => ( <> {(selected) => ( <> {selected?.label || 'Select an option'} )} {(item) => ( <> {item.label} )} )} {({ Field, Options }) => ( <> {(selected) => ( <> {selected?.label || 'Select an option'} )} {(item) => ( <> {item.label} )} )} ); };