@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
12 lines (11 loc) • 671 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const react_intl_1 = require("react-intl");
const formio_1 = require("../formio");
const ReadOnly = () => {
const intl = (0, react_intl_1.useIntl)();
const tooltip = intl.formatMessage({ id: "/gcLcC", defaultMessage: [{ type: 0, value: "Make this component read only." }] });
return ((0, jsx_runtime_1.jsx)(formio_1.Checkbox, { name: "disabled", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'HNoGb8', defaultMessage: [{ type: 0, value: "Read only" }] }), tooltip: tooltip }));
};
exports.default = ReadOnly;