mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
20 lines
664 B
TypeScript
20 lines
664 B
TypeScript
import { TemplateOptions } from './types';
|
|
import { state } from './index';
|
|
import { theme } from '../constants';
|
|
|
|
export default function QuestionContainer({ children }: TemplateOptions): string {
|
|
const Container = `
|
|
flex-wrap: wrap;
|
|
position: relative;
|
|
padding: 1rem 1rem;
|
|
margin-bottom: 0.5rem;
|
|
background-color: ${theme(state.theme, 'white', 'black600')};
|
|
border: solid ${theme(state.theme, 'white', 'black500')} 2px;
|
|
border-radius: 6px;
|
|
box-shadow: 0px 1px 3px ${theme(state.theme, 'gray400', 'black900')};
|
|
`;
|
|
|
|
return `<section style="${Container}">${
|
|
Array.isArray(children) ? children.join('') : children
|
|
}</section>`;
|
|
}
|