blob: 84786ab4946eb33ba6675f0a4fca257b3a0aee22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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}>Delete</span>
}
</li>
);
export default UnitComponent;
|