@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
10 lines (9 loc) • 523 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { FormattedMessage, useIntl } from 'react-intl';
import { Checkbox } from '../formio';
const ReadOnly = () => {
const intl = useIntl();
const tooltip = intl.formatMessage({ id: "/gcLcC", defaultMessage: [{ type: 0, value: "Make this component read only." }] });
return (_jsx(Checkbox, { name: "disabled", label: _jsx(FormattedMessage, { id: 'HNoGb8', defaultMessage: [{ type: 0, value: "Read only" }] }), tooltip: tooltip }));
};
export default ReadOnly;