The quiz question object
Whether richtext mode is enabled
Warning message component to display
Function to handle any changes on the question, including adding/editing/removing answers
Toast message
Toast style
Action when user click on close button. Needs implementation to actually hide the toast
Text editor component that can be switched between displaying as a textarea or a RichTextEditor.
A preview component that displays a rendered view of a question, its choices, and a highlightable code snippet of the question.
Provider element to wrap the other elements to access question context
Renders a QuizEditor component with question, answers, and warning.
Toast component is used to display toasts in the application.
It receives props like type
, text
and onClose
for styling, text and close icon respectively.
It can be used to display different types of toast in the application like success, error, default.
Provider element to wrap other elements to access toast context
Check if 2 objects/values are deeply equal. Doesn't work with circular references.
Trigger download file with provided content, file name and MIME type
file content
Generated file name
File MIME type
Returns a formatted date string by combining the current date, month, year and timestamp.
Hook to access question context
Hook to access toast context
Generated using TypeDoc
if true, display as a RichTextEditor, otherwise, display as a textarea