import { recordTracksEvent } from '@automattic/calypso-analytics';
import { localizeUrl } from '@automattic/i18n-utils';
import { Card, CardBody, Icon } from '@wordpress/components';
import { chartBar, chevronRight, people, trendingUp } from '@wordpress/icons';
import { useTranslate } from 'i18n-calypso';
import { useEffect } from 'react';
import { useSelector } from 'react-redux';
import getIsSiteWPCOM from 'calypso/state/selectors/is-site-wpcom';
import { getSelectedSite } from 'calypso/state/ui/selectors';
import './style.scss';
type EmptyListCTALinkProps = {
icon: JSX.Element;
text: string;
url: string;
eventName: string;
};
const EmptyListCTALink = ( { icon, text, url, eventName }: EmptyListCTALinkProps ) => {
const handleClick = () => {
recordTracksEvent( eventName );
};
return (
{ translate( 'Publishing & sharing content can help bring traffic to your site. Let’s help you get started.' ) }