@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
12 lines (11 loc) • 715 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 ShowCharCount = () => {
const intl = (0, react_intl_1.useIntl)();
const tooltip = intl.formatMessage({ id: "5LxMj7", defaultMessage: [{ type: 0, value: "Show a live count of the number of characters." }] });
return ((0, jsx_runtime_1.jsx)(formio_1.Checkbox, { name: "showCharCount", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ktjLJK', defaultMessage: [{ type: 0, value: "Show character counter" }] }), tooltip: tooltip }));
};
exports.default = ShowCharCount;