/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { useState } from '@wordpress/element'; import { Card, Flex, FlexItem, FlexBlock, Button } from '@wordpress/components'; import { Icon, trendingUp, megaphone, closeSmall } from '@wordpress/icons'; /** * Internal dependencies */ import { CreateNewCampaignModal } from '~/marketing/components'; import './IntroductionBanner.scss'; import wooIconUrl from './woo.svg'; import illustrationUrl from './illustration.svg'; import illustrationLargeUrl from './illustration-large.svg'; type IntroductionBannerProps = { showButtons: boolean; onDismiss: () => void; onAddChannels: () => void; }; export const IntroductionBanner = ( { showButtons, onDismiss, onAddChannels, }: IntroductionBannerProps ) => { const [ open, setOpen ] = useState( false ); return (
{ __( 'Reach new customers and increase sales without leaving WooCommerce', 'woocommerce' ) }
{ __( 'Reach customers on other sales channels', 'woocommerce' ) } { __( 'Advertise with marketing campaigns', 'woocommerce' ) } } /> { __( 'Built by WooCommerce', 'woocommerce' ) } { showButtons && ( ) } { open && ( setOpen( false ) } /> ) }
{
); };