import { Input } from "@/components/ui/input"; import type { IssueFilterState } from "../lib/issue-filters"; import { cn } from "../lib/utils"; function localDateString(date: Date): string { const pad = (value: number) => String(value).padStart(2, "0"); return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`; } /** Start and end days for the Updated filter's custom range, in the browser's time zone. */ export function IssueUpdatedRangeInputs({ state, onChange, className, inputClassName, }: { state: Pick; onChange: (patch: Partial) => void; className?: string; inputClassName?: string; }) { const today = localDateString(new Date()); return (
); }