UNPKG

@e-group/material-module

Version:
23 lines (22 loc) 601 B
import { SetStateAction } from 'react'; import { Question } from './types'; export declare type SurveyContextProps = { /** * Quesitons data. */ questions: Question[]; /** * Set questions data. */ setQuestions: (value: SetStateAction<Question[]>) => void; /** * selected questionId */ selectedQuestionId?: string; /** * set selected questionId */ setSelectedQuestionId: (value: SetStateAction<string | undefined>) => void; }; declare const SurveyContext: import("react").Context<SurveyContextProps>; export default SurveyContext;