"use client"; import * as React from "react"; import { addDays, format } from "date-fns"; import { CalendarIcon } from "lucide-react"; import { DateRange } from "react-day-picker"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import { Calendar } from "@/components/ui/calendar"; import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover"; export function DatePickerWithRange({ className, }: React.HTMLAttributes) { const [date, setDate] = React.useState({ from: new Date(2022, 0, 20), to: addDays(new Date(2022, 0, 20), 20), }); return (
); }