import React from 'react';
import { AnnotationLists } from '../shared/AnnotationLists';
function GradingAnswerAnnotationList({ pregrading, censoring, singleGrading }) {
    const getListOfAnnotations = (annotations, listNumberOffset = 0) => {
        var _a;
        return (_a = annotations
            .filter(a => a.message.length)
            .map((annotation, i) => {
            const numbering = `${String(listNumberOffset + i + 1)})`;
            const message = annotation.message;
            return { numbering, message };
        })) !== null && _a !== void 0 ? _a : [];
    };
    const pregradingAnnotations = getListOfAnnotations(pregrading);
    const censoringAnnotations = getListOfAnnotations(censoring, pregradingAnnotations.length);
    return (React.createElement(AnnotationLists, { pregradingAnnotations: pregradingAnnotations, censoringAnnotations: censoringAnnotations, singleGrading: singleGrading }));
}
export default GradingAnswerAnnotationList;
//# sourceMappingURL=GradingAnswerAnnotationList.js.map