import {
  ReviewQuestionContentHeader
} from "./chunk-QB73IVKI.js";
import {
  RadioGroup
} from "./chunk-6DJOIRMF.js";
import {
  Flex
} from "./chunk-25HMMI7R.js";
import {
  Card
} from "./chunk-RP2RGCAW.js";

// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
function ReviewQuestionSatisfisRadio(props) {
  var _a, _b, _c;
  const { question, answer, onChange } = props;
  return /* @__PURE__ */ jsxs(Fragment, { children: [
    /* @__PURE__ */ jsx(Card, { size: "2", children: /* @__PURE__ */ jsx(
      ReviewQuestionContentHeader,
      {
        icon: question.icon,
        question: (_a = question.question) != null ? _a : "\uC774\uBC88 \uD559\uC2B5\uC5D0 \uB300\uD55C \uC804\uBC18\uC801\uC778 \uB9CC\uC871\uB3C4\uB97C \uC54C\uB824\uC8FC\uC138\uC694.",
        title: (_b = question.title) != null ? _b : "\uB9CC\uC871\uB3C4 \uC870\uC0AC",
        type: question.type
      }
    ) }),
    /* @__PURE__ */ jsx(RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ jsx(RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
  ] });
}
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;

export {
  review_question_satisfaction_option_default
};
//# sourceMappingURL=chunk-KO6ZM4XB.js.map