import * as React from 'react';
import classNames from 'classnames';
import ContentAnalyticsErrorState from './ContentAnalyticsErrorState';
import ContentInsightsSummaryGhostState from './ContentInsightsSummaryGhostState';
import GraphCardPreviewsSummary from './GraphCardPreviewsSummary';
import OpenContentInsightsButton from './OpenContentInsightsButton';
import { GraphData, ResponseError } from './types';
import './ContentInsightsSummary.scss';
interface Props {
error?: ResponseError;
graphData: GraphData;
isLoading: boolean;
isRedesignEnabled?: boolean;
onClick: () => void;
previousPeriodCount: number;
totalCount: number;
}
const ContentInsightsSummary = ({
error,
graphData,
isLoading,
isRedesignEnabled,
onClick,
previousPeriodCount,
totalCount,
}: Props) => {
const renderContentAnalyticsSummary = () => {
if (error) {
return