@cainthus/alex-library
Version:
Component React library for Cainthus - Alex Dashboard.
15 lines (14 loc) • 348 B
TypeScript
import { ReactNode, ComponentType } from "react";
export declare type ChartDataItem = {
label: string;
value: number;
};
export declare type ChartData = Array<ChartDataItem>;
export declare type Props = {
data: ChartData;
unit: string;
children: ReactNode;
tooltipComponent: ComponentType<{
unit: string;
}>;
};