"use client" import * as React from "react" import { CalendarIcon } from "lucide-react" import { addDays, format } from "date-fns" import type { 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" import { useTranslation } from "@/lib/i18n" export function CalendarDateRangePicker({ className }: React.HTMLAttributes) { const { t } = useTranslation() const [date, setDate] = React.useState({ from: new Date(2023, 0, 20), to: addDays(new Date(2023, 0, 20), 20), }) return (
) }