// @flow import React from 'react'; import { FormField } from 'component/common/form'; type Props = { tiny?: boolean, label: string, myChannelClaims: ?Array, injected: ?Array, activeChannelId: ?string, setActiveChannel: (string) => void, fetchingChannels: boolean, }; function SelectChannel(props: Props) { const { fetchingChannels, myChannelClaims = [], label, injected = [], tiny, activeChannelId, setActiveChannel, } = props; function handleChannelChange(event: SyntheticInputEvent<*>) { const channelClaimId = event.target.value; setActiveChannel(channelClaimId); } return ( <> {fetchingChannels ? ( ) : ( <> {myChannelClaims && myChannelClaims.map(({ name, claim_id: claimId }) => ( ))} {injected && injected.map((item) => ( ))} )} ); } export default SelectChannel;