// @flow import React, { useEffect } from 'react'; import ClaimListDiscover from 'component/claimListDiscover'; import * as CS from 'constants/claim_search'; import Nag from 'component/common/nag'; import { parseURI } from 'lbry-redux'; import Button from 'component/button'; import Card from 'component/common/card'; type Props = { subscribedChannels: Array, onContinue: () => void, onBack: () => void, channelSubscribe: (sub: Subscription) => void, }; const LBRY_URI = 'lbry://@lbry#3fda836a92faaceedfe398225fb9b2ee2ed1f01a'; const LBRYCAST_URI = 'lbry://@lbrycast#4c29f8b013adea4d5cca1861fb2161d5089613ea'; function UserChannelFollowIntro(props: Props) { const { subscribedChannels, channelSubscribe, onContinue, onBack } = props; const followingCount = (subscribedChannels && subscribedChannels.length) || 0; // subscribe to lbry useEffect(() => { channelSubscribe({ channelName: parseURI(LBRY_URI).claimName, uri: LBRY_URI, }); channelSubscribe({ channelName: parseURI(LBRYCAST_URI).claimName, uri: LBRYCAST_URI, }); }, []); return (
{followingCount > 0 && ( )}
} /> ); } export default UserChannelFollowIntro;