@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
10 lines (9 loc) • 614 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { FormattedMessage, useIntl } from 'react-intl';
import { Checkbox } from '../../../components/formio';
const IncludeToday = ({ constraint }) => {
const intl = useIntl();
const tooltip = intl.formatMessage({ id: "AClYLf", defaultMessage: [{ type: 0, value: "If checked, the current day is an allowed value." }] });
return (_jsx(Checkbox, { name: `openForms.${constraint}.includeToday`, label: _jsx(FormattedMessage, { id: 'lKijv2', defaultMessage: [{ type: 0, value: "Including today" }] }), tooltip: tooltip }));
};
export default IncludeToday;