import { BarChart2 } from 'lucide-react' import { cn } from 'ui' import { ChartHeader } from './ChartHeader' import { useChartSize } from './Charts.utils' interface NoDataPlaceholderProps { title?: string attribute?: string format?: string | ((value: unknown) => string) message?: string description?: string className?: string size: Parameters[0] isFullHeight?: boolean titleTooltip?: string hideTotalPlaceholder?: boolean } const NoDataPlaceholder = ({ attribute, message = 'No data to show', description, format, className = '', size, isFullHeight = false, titleTooltip, hideTotalPlaceholder = false, }: NoDataPlaceholderProps) => { const { minHeight } = useChartSize(size) return (
{attribute !== undefined && ( )}

{message}

{description &&

{description}

}
) } export default NoDataPlaceholder