UNPKG

react-activity-heatmap

Version:

A simple and customizable leetcode-style activity heatmap component for React.

5 lines (4 loc) 396 B
import type { CellColors, HeatmapActivity, HeatmapCell, HeatmapMonth } from "./types"; export declare function getMonthRanges(startDate: Date, endDate: Date): Array<HeatmapMonth>; export declare function getHeatmapMonthCells(activities: Array<HeatmapActivity>, startDate: Date, endDate: Date): Array<HeatmapCell>; export declare const getColor: (level: number, cellColors: CellColors) => string;