Generateurv2/frontend/components/exos/StepExemple.jsx
2022-05-18 10:15:54 +02:00

20 lines
536 B
JavaScript

import styles from "../../styles/exos/StepExemple.module.scss";
export default function StepExemple({ exemple, consigne }) {
return (
<div className={styles["step-exemple-container"]}>
<div className={styles["step-exemple"]}>
<p className={styles["step-ex-content"]}>{consigne}</p>
{exemple.map((e, i) => {
return (
<p key={i} className={styles["step-ex-content"]}>
{e.calcul}
</p>
);
})}
<p>...</p>
</div>
</div>
);
}