import React from 'react' import { DayPicker, type DayButtonProps, type DateRange, } from 'react-day-picker' import { SvgTaillessLineArrowLeft1, SvgTaillessLineArrowRight1, } from '@chainlink/blocks-icons' import { cn } from '../../utils/cn' import { buttonIconVariants } from '../Button' export type CalendarProps = React.ComponentProps /** * Custom DayButton — all button-level visual styles live here. * Uses data-attributes for state so the Calendar classNames only * handle cell-level layout and the range band background. */ function CalendarDayButton({ day, modifiers, className, ...props }: DayButtonProps) { const ref = React.useRef(null) React.useEffect(() => { if (modifiers.focused) ref.current?.focus() }, [modifiers.focused]) return (