UNPKG

@instructure/quiz-interactions

Version:

A React UI component Library for quiz interaction types.

52 lines 1.28 kB
import React from 'react'; var propValues = { additionalOptions: [[], [{ key: 'extra', title: 'Extra section', component: /*#__PURE__*/React.createElement("div", null, "Hello") }]], itemBodyErrors: [[], ['You must have an item body']], interactionData: [{ rce: false, spellCheck: true, wordCount: false, wordLimitEnabled: true, wordLimitMin: '100', wordLimitMax: '200', notes: 'Blah blah' }, { rce: true, spellCheck: false, wordCount: true, wordLimitEnabled: false, wordLimitMin: '', wordLimitMax: '', notes: '' }], scoringData: [{ value: '' }, { value: 'The rain in spain stays mainly on the plain.' }], overrideEditableForRegrading: [true, false] }; export default { propValues: propValues, getComponentProps: function getComponentProps(props) { return { enableRichContentEditor: false, oneQuestionAtATime: false, itemId: 'fakeItemId', itemBody: 'Essay Edit', errors: { itemBody: props.itemBodyErrors }, errorsAreShowing: props.itemBodyErrors.length > 0, changeItemState: Function.prototype, openImportModal: Function.prototype, getErrors: function getErrors() { return []; } }; } };