import classNames from 'classnames';
import React from 'react';
import { useExamTranslation } from '../../i18n';
export const Score = ({ id, size = 'small', score }) => {
    const { t } = useExamTranslation();
    const Tag = size === 'inline' ? 'sup' : 'span';
    return (React.createElement(Tag, { className: classNames('e-score e-nowrap', {
            'e-score--small e-font-size-m e-semibold': size === 'small',
            'e-score--large e-font-size-l e-semibold': size === 'large',
            'e-score--inline e-font-size-xs': size === 'inline'
        }), id: id }, t('points', { count: score })));
};
//# sourceMappingURL=Score.js.map