import { TIME_RANGES, RANGE_LABELS, type TimeRange } from './time-range';
interface Props {
active: TimeRange;
onChange: (range: TimeRange) => void;
lang?: 'en' | 'de';
}
export function TimeRangePicker({ active, onChange, lang = 'en' }: Props) {
return (
{TIME_RANGES.map((r) => {
const isActive = r === active;
return (
);
})}
);
}