import { CSSProperties, PropsWithChildren } from 'react'; import { Interpolator } from '../../common/types/interpolator'; import { GetLegendProps } from '../../helpers/getLegend/types'; export type OnEachDay = (data: CalendarChartData, element: HTMLDivElement, color: string) => void; export interface CalendarChartProps extends PropsWithChildren { className?: string; style?: CSSProperties; data: CalendarChartData[]; startSunday?: boolean; weekdays?: string | string[]; cellOffset?: number; cellSize?: number; interpolator?: Interpolator; monthSpacing?: number; onEachDay?: OnEachDay; colorRange?: [string, string]; legendProps?: GetLegendProps; } export type CalendarChartData = { date: Date; value: number; };