/** * External dependencies */ import { Fragment, useState } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { CardBody, CardDivider, Button, Icon } from '@wordpress/components'; import { chevronUp, chevronDown } from '@wordpress/icons'; /** * Internal dependencies */ import { RecommendedChannel } from '~/marketing/types'; import { RecommendedChannelsList } from './RecommendedChannelsList'; import './Channels.scss'; type RecommendedChannelsType = { recommendedChannels: Array< RecommendedChannel >; }; export const CollapsibleRecommendedChannels: React.FC< RecommendedChannelsType > = ( { recommendedChannels } ) => { const [ collapsed, setCollapsed ] = useState( true ); return ( <> { ! collapsed && ( ) } ); };