export interface Question {
  id: string;
  name: string;
  type: OptionTypes;
  options: string[];
  required?: boolean;
}

export interface InputProps {
  index: number;
  value: string | string[];
  questions: Question[];
  type: string;
}

type OptionTypes =
  "text" |
  "info" |
  "integer" |
  "radiobutton" |
  "checkbox" |
  "email" |
  "name";

export const optionTypes = [
  "text",
  "info",
  "integer",
  "radiobutton",
  "checkbox",
  "email",
  "name",
];

export class SignupQuestionError extends Error { }
