Bővítés a 4. feladatig megvan.

This commit is contained in:
2025-11-24 12:14:45 +01:00
parent 1178922afc
commit 1caea98e5b
9 changed files with 106 additions and 11 deletions

View File

@@ -0,0 +1,29 @@
import React from 'react'
const Statisztika = ({total, megvett}) => {
const megvenni = total-megvett;
return (
<div>
<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