import type React from 'react' import { EmptyState } from './EmptyState' interface HourBarsProps { hours: { hour: number; count: number }[] } export function HourBars({ hours }: HourBarsProps): React.JSX.Element { if (hours.length !== 24) { return } const maxCount = Math.max(...hours.map(h => h.count), 1) return ( <> {hours.map(({ hour, count }) => { const barH = Math.max(2, (count / maxCount) * 68) const x = hour * 10 + 1 const isOffPeak = hour < 9 || hour > 19 return ( ) })}
00 06 12 18 24
) }