import React, { useContext } from 'react';
import { QuestionContext } from '../context/QuestionContext';
import * as _ from 'lodash-es';
export function QuestionNumber({ element, options }) {
    const suffix = element.getAttribute('suffix');
    const { displayNumber } = useContext(QuestionContext);
    if (options === 1 /* RenderOptions.SkipHTML */) {
        return null;
    }
    return (React.createElement(React.Fragment, null,
        _.first(displayNumber.split('.')),
        ".",
        suffix));
}
//# sourceMappingURL=QuestionNumber.js.map