summaryrefslogtreecommitdiff
path: root/src/components/sidebars/topology/machine/UnitComponent.js
blob: c734f5083487b48c724258a211caf998d1296c1d (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-2"/>
                Delete
            </span>
        }
    </li>
);

export default UnitComponent;