import BarChart from 'components/ui/Charts/BarChart' import type { Datum } from 'components/ui/Charts/Charts.types' import type { EventChartData } from './Logs.types' export interface LogEventChartProps { data: EventChartData[] onBarClick: (isoTimestamp: string) => void className?: string } const LogEventChart = ({ data, onBarClick, className }: LogEventChartProps) => ( { if (!datum?.timestamp) return onBarClick(datum.timestamp as string) }} customDateFormat="MMM D, HH:mm:s" /> ) export default LogEventChart