useCalendarRange
The useCalendarRange hook (hooks/calendar/useCalendarRange.ts) computes the start and end dates of the currently visible calendar grid.Computation
Based on the selectedDate from useCalendarStore and the current viewMode:- Week view: Returns the Monday-to-Sunday range containing the selected date
- Day view: Returns a single-day range