Files
stats/apps/start/src/components/overview/overview-interval.tsx
Carl-Gerhard Lindesvärd b51bc8f3f6 fix: improvements for frontend
2025-11-04 12:26:52 +01:00

25 lines
654 B
TypeScript

import { useOverviewOptions } from '@/components/overview/useOverviewOptions';
import {
isHourIntervalEnabledByRange,
isMinuteIntervalEnabledByRange,
} from '@openpanel/constants';
import { ClockIcon } from 'lucide-react';
import { ReportInterval } from '../report/ReportInterval';
import { Combobox } from '../ui/combobox';
export function OverviewInterval() {
const { interval, setInterval, range, startDate, endDate } =
useOverviewOptions();
return (
<ReportInterval
interval={interval}
onChange={setInterval}
range={range}
chartType="linear"
startDate={startDate}
endDate={endDate}
/>
);
}