@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
39 lines (38 loc) • 817 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = exports["default"] = {
propValues: {
scoringData: [{
test: 'No answer'
}, {
value: 'uuid1',
test: 'Option 1'
}, {
value: 'uuid2',
test: 'Option 2'
}]
},
getComponentProps: function getComponentProps(props) {
return {
itemId: 'fakeItemId',
itemBody: "Multiple Choice: Show (".concat(props.scoringData.test, ")"),
interactionData: {
choices: [{
id: 'uuid1',
itemBody: 'Option 1',
position: 1
}, {
id: 'uuid2',
itemBody: 'Option 2',
position: 2
}]
},
scoringData: {
value: props.scoringData.value
}
};
}
};