import type { ReactElement } from 'react'; interface Tile { backgroundColor: string; data: TData; id: string; } interface ChildrenProps { backgroundColor: string; data: TData; id: string; isSmallestSize: boolean; isMediumSize?: boolean; tileSize?: number; } export interface HeatMapProps { arrowClassName?: string; children: ({ backgroundColor, id, data, isSmallestSize, tileSize, isMediumSize }: ChildrenProps) => ReactElement | boolean | null; displayTooltipCondition?: (data: TData) => boolean; tileSizeFixed?: boolean; tiles: Array>; tooltipContent?: ({ backgroundColor, id, data, isSmallestSize }: ChildrenProps) => ReactElement | boolean | null; }