Generateurv2/frontend/components/room/Note.jsx

18 lines
399 B
React
Raw Normal View History

2022-05-18 10:15:54 +02:00
import styles from "../../styles/room/note.module.scss";
import { parseClassName } from "../../utils/utils.js";
export default function Note({ value, total, success }) {
return (
<div
className={parseClassName([
styles.main,
(value * 20) / total >= success ? styles["success"] : styles["fail"],
])}
>
{value}
<hr />
{total}
</div>
);
}