import React from 'react';
import { getNumericAttribute, NBSP } from '../../dom-utils';
import { useExamTranslation } from '../../i18n';
const AutogradedAnswerOption = ({ element, renderChildNodes }) => {
    const score = getNumericAttribute(element, 'score');
    if (!score) {
        return null;
    }
    const { t } = useExamTranslation();
    return (React.createElement("li", null,
        renderChildNodes(element),
        NBSP,
        "(",
        t('points', { count: score }),
        ")"));
};
export default AutogradedAnswerOption;
//# sourceMappingURL=AutogradedAnswerOption.js.map