import { Avatar, Select } from 'antd' import React from 'react' import { Chain, ChainKey, getChainByKey } from '../types' interface ChainSelectProps { availableChains: Array selectedChain?: ChainKey onChangeSelectedChain: Function disabled?: boolean } const positionFixed = window.location.pathname.includes('showcase') const ChainSelect = ({ availableChains, selectedChain, onChangeSelectedChain, disabled = false, }: ChainSelectProps) => { const chain = selectedChain ? getChainByKey(selectedChain) : undefined return ( <> {chain ? ( {chain.name[0]} ) : ( '' )} ) } export default ChainSelect