@atlaskit/calendar
Version:
An interactive calendar for date selection experiences.
11 lines (10 loc) • 524 B
TypeScript
/**
* Logic taken from https://github.com/WesSouza/calendar-base which is not maintained for quite sometime.
* This will help us fixing any issue we might get or any new functionality we might want to support.
* Not changing much code below. Just removed those parts which we don't need.
*/
import type { WeekDay } from '../../types';
import type { CalendarDate } from '../types';
export default function getBaseCalendar(year: number, month: number, { weekStartDay, }?: {
weekStartDay?: WeekDay;
}): CalendarDate[];