// @flow import React from 'react'; import Page from 'component/page'; import Spinner from 'component/spinner'; import Button from 'component/button'; import CreatorAnalytics from 'component/creatorAnalytics'; type Props = { channels: Array, fetchingChannels: boolean, openChannelCreateModal: () => void, }; export default function CreatorDashboardPage(props: Props) { const { channels, fetchingChannels, openChannelCreateModal } = props; return ( {fetchingChannels && (
)} {!fetchingChannels && (!channels || !channels.length) && (

{__("You haven't created a channel yet, let's fix that!")}

)} {!fetchingChannels && channels && channels.length && }
); }