UNPKG

@hhgtech/hhg-components

Version:
37 lines (36 loc) 1.05 kB
import React from 'react'; import { TranslationKeys } from "../../../i18n/translationKeys"; import { WeightGainStatus } from "./components/chart"; export type WeekDataType = Array<{ min: number; max: number; week: number; }>; type ChartProps = { weightByWeek: WeekDataType; weightBefore: number; toolTipLabel?: Array<React.ReactNode>; status?: WeightGainStatus; activeWeek?: number; t: (k: TranslationKeys, option?: { [key: string]: any; }) => string; }; export declare const generatePregnancyWeightGainChartData: ({ weightByWeek, weightBefore, toolTipLabel, status, activeWeek, t, }: ChartProps) => ({ toolTipLabel: React.ReactNode[]; translatedStatus: string; status: WeightGainStatus; name: number; min: number; difference: number; max: number; } | { toolTipLabel?: undefined; translatedStatus?: undefined; status?: undefined; name: number; min: number; difference: number; max: number; })[]; export {};