// @flow import * as React from 'react'; import YoutubeChannelListItem from './internal/youtubeChannel'; import Button from 'component/button'; import Spinner from 'component/spinner'; type Props = { ytChannels: Array, ytImportPending: boolean, userFetchPending: boolean, claimChannels: () => void, updateUser: () => void, }; export default function YoutubeChannelList(props: Props) { const { ytChannels, ytImportPending, userFetchPending, claimChannels, updateUser } = props; const hasChannels = ytChannels && ytChannels.length; const transferEnabled = ytChannels && ytChannels.some(el => el.transferable === true); return ( hasChannels && (

Synced Youtube Channels{userFetchPending && }

{transferEnabled && !IS_WEB && (

LBRY is currently holding channels you can take control of.

)} {!transferEnabled && !IS_WEB && (

LBRY is currently holding channels but none are ready for transfer yet.

)} {IS_WEB && (

{__(`LBRY.tv can't import accounts yet. `)}

) ); }