EdgeFunctionChartEmptyState.tsx20 lines · main
| 1 | import { BarChart2 } from 'lucide-react' |
| 2 | import { ChartEmptyState } from 'ui-patterns/Chart' |
| 3 | |
| 4 | interface EdgeFunctionChartEmptyStateProps { |
| 5 | title: string |
| 6 | description?: string |
| 7 | } |
| 8 | |
| 9 | export const EdgeFunctionChartEmptyState = ({ |
| 10 | title, |
| 11 | description, |
| 12 | }: EdgeFunctionChartEmptyStateProps) => { |
| 13 | return ( |
| 14 | <ChartEmptyState |
| 15 | icon={<BarChart2 size={16} />} |
| 16 | title={title} |
| 17 | description={description ?? 'It may take up to 24 hours for data to refresh'} |
| 18 | /> |
| 19 | ) |
| 20 | } |