Files
ToDoList/src/components/Statisztika.jsx
2025-12-08 12:14:18 +01:00

31 lines
616 B
JavaScript

import React from 'react'
import Fomenu from './Fomenu';
const Statisztika = ({total, megvett}) => {
const megvenni = total-megvett;
return (
<div>
<Fomenu />
<table>
<tbody>
<tr>
<th>Összesen:</th>
<td>{total}</td>
</tr>
<tr>
<th>Megvett:</th>
<td>{megvett}</td>
</tr>
<tr>
<th>Beszerzendő:</th>
<td>{megvenni}</td>
</tr>
</tbody>
</table>
</div>
)
}
export default Statisztika