@hhgtech/hhg-components
Version:
Hello Health Group common components
23 lines (22 loc) • 867 B
TypeScript
/// <reference types="react" />
import { Control } from 'react-hook-form';
import { ButtonProps } from "../../../../../mantine";
import { BmiFormValue, Rule } from "../../../embeddedHeathToolCards/helpers";
export type BmiFormContextType = {
control: Control<BmiFormValue, any>;
bmiGenerated: Record<keyof BmiFormValue, {
label: string;
rule?: Rule | undefined;
}>;
isTouched: boolean;
linkTool: string;
submitProps?: ButtonProps;
withAdditionalQuestion?: boolean;
classes: Record<string, string>;
enableUnitPicker: boolean;
unitSystem: 'metric' | 'imperial';
unitHeight: 'cm' | 'ft';
unitWeight: 'kg' | 'lbs';
onUnitChange: (next: 'metric' | 'imperial', field: 'height' | 'weight') => void;
};
export declare const BmiFormContext: import("react").Context<BmiFormContextType>;