mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
26 lines
771 B
TypeScript
26 lines
771 B
TypeScript
import { TemplateOptions } from './types';
|
|
import { state } from '.';
|
|
import { ParagraphStyle } from '../constants';
|
|
import { BaseQuestion } from 'gift-pegjs';
|
|
import { FormattedTextTemplate } from './TextTypeTemplate';
|
|
|
|
// Type is string to allow for custom question type text (e,g, "Multiple Choice")
|
|
interface StemOptions extends TemplateOptions {
|
|
formattedStem: BaseQuestion['formattedStem'];
|
|
}
|
|
|
|
export default function StemTemplate({ formattedStem }: StemOptions): string {
|
|
const Container = `
|
|
display: flex;
|
|
`;
|
|
|
|
return `
|
|
<div style="${Container}">
|
|
<span>
|
|
<p style="${ParagraphStyle(state.theme)}" class="present-question-stem">
|
|
${FormattedTextTemplate(formattedStem)}
|
|
</p>
|
|
</span>
|
|
</div>
|
|
`;
|
|
}
|