UNPKG

@gpa-gemstone/react-interactive

Version:
18 lines (17 loc) 647 B
import { Gemstone } from '@gpa-gemstone/application-typings'; interface IProps { /** The decision tree data */ Data: Gemstone.TSX.Interfaces.IDecisionTreeData; /** Fallback UI in the case where a node isn't found*/ FallbackHelp?: JSX.Element; /** Optional Value to reset to root node when it changes */ ResetToRoot?: any; /**Optional Func to call when a leaf node is reached */ OnComplete?: (value: any) => void; } /** * A generic decision-tree walker. * Renders one node at a time and advances on button click. */ declare const DecisionHelpTree: (props: IProps) => JSX.Element; export default DecisionHelpTree;