UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

23 lines (22 loc) 562 B
import { jsx as e } from "react/jsx-runtime"; import { FormattedMessage as o } from "react-intl"; import t from "./ModeToggle.js"; const g = ({ previewMode: a, setPreviewMode: l }) => /* @__PURE__ */ e(t, { name: "previewMode", currentMode: a, onToggle: (r) => l(r), modes: [{ value: "rich", label: /* @__PURE__ */ e(o, { id: "hJtTwo", defaultMessage: [{ type: 0, value: "Form" }] }) }, { value: "JSON", label: /* @__PURE__ */ e(o, { id: "JdwEl7", defaultMessage: [{ type: 0, value: "JSON" }] }) }] }); export { g as default };