@hhgtech/hhg-components
Version:
Hello Health Group common components
27 lines (26 loc) • 963 B
TypeScript
import React from 'react';
import { BabyGrowthChartDuration, BabyGrowthChartType, Gender, HistoryLineType, LOCALE } from "../../../interfaces/types";
export type BabyGrowthChartProps = {
gender: Gender;
type: BabyGrowthChartType;
duration: BabyGrowthChartDuration;
xLabel: string;
x?: number;
y?: number;
toolTipLabel?: Array<string>;
isDivide?: boolean;
onIsPrevious?(): void;
locale: LOCALE;
riskLevel?: string;
withLine?: boolean;
lineData?: HistoryLineType;
};
export type AxisType = {
name: string;
color: string;
label?: string;
};
export declare const LABELS_Z_SCORE: Array<AxisType>;
export declare const LABELS_PERCENTILE: Array<AxisType>;
declare const BabyGrowthChart: ({ gender, type, duration, xLabel, x, y, toolTipLabel, isDivide, onIsPrevious, locale, riskLevel, withLine, lineData, }: BabyGrowthChartProps) => React.JSX.Element;
export { BabyGrowthChart };