import { __ } from '@wordpress/i18n'; /** * Centered no-data state for a chart block, matching the chart height so the * layout does not jump when data arrives. * * @param props - Explanation message and an optional leading icon. * @return The empty-state element. */ export function ChartEmptyState({ message, icon }: { message: string; icon?: JSX.Element; }): JSX.Element { return (
{ icon &&
{ icon }
}

{ __( 'No data to display', 'burst-statistics' ) }

{ message }

); }