import { t } from '@vegaprotocol/i18n'; import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuTrigger, DropdownMenuSeparator, } from '@vegaprotocol/ui-toolkit'; export const AssetDropdown = ({ assets, checkedAssets, onSelect, onReset, }: { assets: Array<{ id: string; symbol: string }> | undefined; checkedAssets: string[]; onSelect: (id: string, checked: boolean) => void; onReset: () => void; }) => { if (!assets?.length) { return null; } return ( $ } > {t('Reset')} {assets?.map((a) => { return ( { if (typeof checked === 'boolean') { onSelect(a.id, checked); } }} data-testid={`asset-id-${a.id}`} > {a.symbol} ); })} ); };