/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Card, CardHeader, CardBody } from '@wordpress/components'; /** * Internal dependencies */ import { CardHeaderTitle, CardHeaderDescription, CenteredSpinner, } from '~/marketing/components'; import { useChannels } from './useChannels'; import './Channels.scss'; export const Channels = () => { const { loading, data: { registeredChannels, recommendedChannels }, } = useChannels(); if ( loading ) { return ( { __( 'Channels', 'woocommerce' ) } ); } const description = registeredChannels.length === 0 && recommendedChannels.length > 0 && __( 'Start by adding a channel to your store', 'woocommerce' ); return ( { __( 'Channels', 'woocommerce' ) } { description } { /* TODO: */ } Body ); };