UNPKG

@hhgtech/hhg-components

Version:
29 lines (28 loc) 1.15 kB
import React, { CSSProperties, ReactNode } from 'react'; import { SurveyOption, SurveyTextOption, SurveyQuestion } from "./surveyQuestionContent"; export type SurveyAnswer = SurveyOption[] | SurveyTextOption[]; export type Props = { headerText?: string; className?: string; style?: CSSProperties; termAndPolicyText?: ReactNode; prevText?: ReactNode; nextText: ReactNode; isContactForm?: boolean; isSubmitButton?: boolean; isDisableNext?: boolean; isDisablePrev?: boolean; onPrevClick?: () => void; isButtonCenter?: boolean; onNextClick?: (answer?: SurveyAnswer) => void; question: SurveyQuestion; progress?: number; descriptionText?: string; }; export declare enum NodeMultipleOptions { UNLIMITED = 0, EXACT_NUMBER = 1, RANGE = 2 } declare const SurveyQuestionCard: ({ className, headerText, style, question, termAndPolicyText, prevText, nextText, isContactForm, isDisableNext, isDisablePrev, onPrevClick, onNextClick, isSubmitButton, isButtonCenter, progress, descriptionText, }: Props) => React.JSX.Element; export { SurveyQuestionCard };