blob: 895626d16ebc50a159982ccec59da2b3b7a8af58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import React from "react";
const UnitComponent = ({unit, onDelete, inSimulation}) => (
<li className="d-flex list-group-item justify-content-between align-items-center">
{unit.manufacturer + " " + unit.family + " " + unit.model + " " + unit.generation}
{inSimulation ?
undefined :
<span className="btn btn-outline-danger" onClick={onDelete}>
<span className="fa fa-trash mr-1"/>
Delete
</span>
}
</li>
);
export default UnitComponent;
|