mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
14 lines
419 B
TypeScript
14 lines
419 B
TypeScript
import { TemplateOptions, Category as CategoryType } from './types';
|
|
import QuestionContainer from './QuestionContainer';
|
|
import Title from './Title';
|
|
|
|
type CategoryOptions = TemplateOptions & CategoryType;
|
|
|
|
export default function Category({ title }: CategoryOptions): string {
|
|
return `${QuestionContainer({
|
|
children: Title({
|
|
type: 'Catégorie',
|
|
title: title
|
|
})
|
|
})}`;
|
|
}
|