import * as React from 'react'; import OptionSelector from 'app/components/charts/optionSelector'; import { ChartControls, InlineContainer, SectionHeading, SectionValue, } from 'app/components/charts/styles'; import {t} from 'app/locale'; import {SelectValue} from 'app/types'; type Props = { total: number | null; yAxisValue: string; yAxisOptions: SelectValue[]; onAxisChange: (value: string) => void; displayMode: string; displayOptions: SelectValue[]; onDisplayChange: (value: string) => void; }; export default function ChartFooter({ total, yAxisValue, yAxisOptions, onAxisChange, displayMode, displayOptions, onDisplayChange, }: Props) { const elements: React.ReactNode[] = []; elements.push({t('Total Events')}); elements.push( total === null ? ( ) : ( {total.toLocaleString()} ) ); return ( {elements} ); }