import {
  review_question_satisfaction_option_default
} from "./chunk-BUZDDAS6.js";
import {
  ReviewQuestionSatisfisText
} from "./chunk-BZJSMPS7.js";
import {
  review_question_text_default
} from "./chunk-43GY5NCV.js";
import {
  review_question_radio_default
} from "./chunk-NPLNFIAD.js";

// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
import { jsx } from "react/jsx-runtime";
function ReviewQuestionBody(props) {
  const { question, answer, error, onChange } = props;
  if (question.type === "question_radio") {
    return /* @__PURE__ */ jsx(
      review_question_radio_default,
      {
        answer,
        error,
        onChange,
        question
      }
    );
  }
  if (question.type === "question_text") {
    return /* @__PURE__ */ jsx(
      review_question_text_default,
      {
        answer,
        error,
        onChange,
        question
      }
    );
  }
  if (question.type === "question_satisfaction_option") {
    return /* @__PURE__ */ jsx(
      review_question_satisfaction_option_default,
      {
        answer,
        error,
        onChange,
        question
      }
    );
  }
  if (question.type === "question_satisfaction_text") {
    return /* @__PURE__ */ jsx(
      ReviewQuestionSatisfisText,
      {
        answer,
        error,
        onChange,
        question
      }
    );
  }
  return null;
}
var review_question_body_default = ReviewQuestionBody;

export {
  review_question_body_default
};
//# sourceMappingURL=chunk-CRRGV65G.js.map