'use client' import { BarChart2, ExternalLink } from 'lucide-react' import { Badge, CriticalIcon } from 'ui' import { Chart, ChartActions, ChartCard, ChartContent, ChartDisabledState, ChartEmptyState, ChartHeader, ChartLoadingState, ChartTitle, } from 'ui-patterns/Chart' export default function ChartComposedStates() { const actions = [ { label: 'Open in Logs Explorer', onClick: () => { alert('Ta da! You clicked me! 🎉') }, icon: , }, ] const disabledActions = [ { label: 'Upgrade to Pro', href: '#', }, ] return (
Response Errors }>My chart here... Response Errors } title="Some error happened" description="Error happened why trying to fetch data. Please try again later." /> } emptyState={ } title="No data to show" description="It may take up to 24 hours for data to refresh" /> } loadingState={} > My chart here... Response Errors } title="No data to show" description="It may take up to 24 hours for data to refresh" /> } loadingState={} > My chart here... Response Errors } disabledState={ Pro} label="API Processing Time" description="This chart is available on the Pro plan and above" actions={disabledActions} /> } > My chart here...
) }