UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

34 lines (33 loc) 882 B
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