import {
  Heading
} from "./chunk-34OQDUQR.js";
import {
  Card
} from "./chunk-HEDMSFPW.js";
import {
  Badge
} from "./chunk-FCIHNIOH.js";
import {
  Box
} from "./chunk-4Y5BEXVN.js";
import {
  Typo
} from "./chunk-PARGQUJB.js";
import {
  Flex
} from "./chunk-25HMMI7R.js";

// src/app/platform/session-review-simple-read.tsx
import { useMemo } from "react";
import { jsx, jsxs } from "react/jsx-runtime";
function SubTitleWrapper({
  children,
  title
}) {
  return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
    /* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: title }),
    /* @__PURE__ */ jsx(Box, { children })
  ] });
}
function SessionReviewSimpleRead({
  helpfulness,
  review
}) {
  const helpfulnessMeta = useMemo(() => {
    if (helpfulness) {
      return {
        text: "\uB124",
        color: "success"
      };
    }
    if (typeof helpfulness === "undefined") {
      return {
        text: "-",
        color: "neutral"
      };
    }
    return {
      text: "\uC544\uB2C8\uC694",
      color: "error"
    };
  }, [helpfulness]);
  return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
    /* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ jsx(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
    /* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ jsx(Card, { children: review ? /* @__PURE__ */ jsx(Typo, { as: "p", children: review }) : /* @__PURE__ */ jsx(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
  ] }) });
}

export {
  SessionReviewSimpleRead
};
//# sourceMappingURL=chunk-4EO3MXIL.js.map