"use client"; import * as React from "react"; import { DayPicker } from "react-day-picker"; import { ChevronLeftIcon } from "../icons"; import { cn } from "../utils"; export type CalendarProps = React.ComponentProps; export const Calendar = ({ className, showOutsideDays = true, ...props }: CalendarProps) => { const currentYear = new Date().getFullYear(); const thirtyYearsAgoFirstDay = new Date(currentYear - 30, 0, 1); const thirtyYearsFromNowFirstDay = new Date(currentYear + 30, 11, 31); return ( ( ), }} startMonth={thirtyYearsAgoFirstDay} endMonth={thirtyYearsFromNowFirstDay} {...props} /> ); };