import {Fragment} from 'react'; import LazyLoad from 'react-lazyload'; import MiniBarChart from 'sentry/components/charts/miniBarChart'; import {t} from 'sentry/locale'; import type {Series} from 'sentry/types/echarts'; import type {Project} from 'sentry/types/project'; type Props = { project: Project; stats?: Project['stats']; }; function ProjectStatsGraph({project, stats}: Props) { stats = stats || project.stats || []; const series: Series[] = [ { seriesName: t('Events'), data: stats.map(point => ({name: point[0] * 1000, value: point[1]})), }, ]; return ( {series && ( )} ); } export default ProjectStatsGraph;