import type { Period } from '@/lib/api'; const OPTIONS: { value: Period; shortLabel: string; label: string }[] = [ { value: '24h', shortLabel: '24h', label: '24 hours' }, { value: '7d', shortLabel: '7d', label: '7 days' }, { value: '30d', shortLabel: '30d', label: '30 days' }, { value: '90d', shortLabel: '90d', label: '3 months' }, ]; export function TimeRangePills({ value, onChange }: { value: Period; onChange: (p: Period) => void }) { return (
{OPTIONS.map((opt) => ( ))}
); }