27 lines
594 B
TypeScript
27 lines
594 B
TypeScript
|
import { QUIZ_QUESTION_BASE } from "./base";
|
||
|
|
||
|
import type { QuizQuestionResult } from "../model/questionTypes/result";
|
||
|
import { nanoid } from "nanoid";
|
||
|
|
||
|
export const QUIZ_QUESTION_RESULT: Omit<QuizQuestionResult, "id" | "backendId"> = {
|
||
|
...QUIZ_QUESTION_BASE,
|
||
|
type: "result",
|
||
|
content: {
|
||
|
...QUIZ_QUESTION_BASE.content,
|
||
|
multi: false,
|
||
|
own: false,
|
||
|
innerNameCheck: false,
|
||
|
innerName: "",
|
||
|
required: false,
|
||
|
variants: [
|
||
|
{
|
||
|
id: nanoid(),
|
||
|
answer: "",
|
||
|
extendedText: "",
|
||
|
hints: "",
|
||
|
originalImageUrl: "",
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|