UNPKG

@cainthus/alex-library

Version:

Component React library for Cainthus - Alex Dashboard.

15 lines (12 loc) 296 B
import { ReactNode, ComponentType } from "react"; export type ChartDataItem = { label: string, value: number } export type ChartData = Array<ChartDataItem>; export type Props = { data: ChartData, unit: string, children: ReactNode, tooltipComponent: ComponentType<{unit: string}> };