synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
34 lines (33 loc) • 882 B
JavaScript
import { jsxs as a, jsx as o } from "react/jsx-runtime";
import { Box as x, Typography as d } from "@mui/material";
function l(i) {
const { question: e, answer: n, onClick: t, checked: r, disabled: s } = i;
return /* @__PURE__ */ a(x, { sx: { marginBottom: "5px" }, children: [
/* @__PURE__ */ o(
"input",
{
id: `${e.questionIndex}-${n.answerIndex}`,
name: `${e.questionIndex}`,
type: e.exclusive ? "radio" : "checkbox",
value: n.answerIndex,
onClick: t,
checked: r,
disabled: s
}
),
/* @__PURE__ */ o(
d,
{
variant: "body1",
component: "label",
sx: { lineHeight: "18px" },
htmlFor: `${e.questionIndex}-${n.answerIndex}`,
children: n.prompt
}
)
] });
}
export {
l as default
};
//# sourceMappingURL=CertificationAnswer.js.map