"use client"; import * as React from "react"; import { CalendarIcon } from "@radix-ui/react-icons"; import { cn } from "@/lib/utils"; import { formatDate } from "@/lib/utils/dates"; import { Button } from "@/components/ui/button"; import { Calendar } from "@/components/ui/calendar"; import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover"; type DatePickerProps = { date: Date | undefined; onDateChange: (newDate: Date | undefined) => void; initialFocus?: boolean; placeholder?: string; hideIcon?: boolean; displayFormat?: string; }; export function DatePicker({ date, onDateChange, placeholder = "Pick a date", initialFocus, hideIcon = false, displayFormat, }: DatePickerProps) { // const [date, setDate] = React.useState(); return ( ); }