import React, { useRef } from "react"; import classNames from "classnames"; import { useCalendarCell } from "@react-aria/calendar"; import { CalendarDate, getLocalTimeZone, isToday, } from "@internationalized/date"; import { CalendarState } from "@react-stately/calendar"; import { Button } from ":/components/Button"; interface CalendarCellProps { state: CalendarState; date: CalendarDate; } export const CalendarCell = ({ state, date }: CalendarCellProps) => { const ref = useRef(null); const { cellProps, buttonProps, isSelected, formattedDate } = useCalendarCell( { date }, state, ref ); return ( ); };