EdgeFunctionChartEmptyState.tsx 479 B

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