// @flow import * as PAGES from 'constants/pages'; import React from 'react'; import Page from 'component/page'; import Spinner from 'component/spinner'; import Button from 'component/button'; import CreatorAnalytics from 'component/creatorAnalytics'; import ChannelSelector from 'component/channelSelector'; import Yrbl from 'component/yrbl'; type Props = { channels: Array, fetchingChannels: boolean, activeChannelClaim: ?ChannelClaim, }; export default function CreatorDashboardPage(props: Props) { const { channels, fetchingChannels, activeChannelClaim } = props; const hasChannels = channels && channels.length > 0; return ( {fetchingChannels && (
)} {!fetchingChannels && !hasChannels && (