import React from 'react';
import { useExamTranslation } from '../../i18n';
export const DNDAnswerOption = ({ element, renderChildNodes, style, className }) => {
    const hasContent = renderChildNodes(element).length > 0;
    const { t } = useExamTranslation();
    return (React.createElement("div", { className: className, style: style },
        React.createElement("div", { className: "option-content" }, !hasContent ? React.createElement("i", { style: { color: 'grey' } }, t('dnd-answers.answer-missing')) : renderChildNodes(element))));
};
//# sourceMappingURL=DNDAnswerOption.js.map