"use client"; import clsx from "clsx"; import { daysAgo, today } from "@/lib/format"; import { Field } from "./ui"; interface Props { start: string; end: string; onChange: (start: string, end: string) => void; presets?: number[]; // days className?: string; } export function DateRange({ start, end, onChange, presets = [7, 30, 90, 120, 365], className }: Props) { return (