summaryrefslogtreecommitdiff
path: root/src/components/sidebars/topology/rack/EmptySlotComponent.js
blob: c4c453e94c82816db5b346229eb689c81b0c7fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from "react";

const EmptySlotComponent = ({position, onAdd, inSimulation}) => (
    <li className="list-group-item d-flex justify-content-between align-items-center">
        <span className="badge badge-default badge-info mr-1 disabled">
            {position}
        </span>
        {inSimulation ?
            <span className="badge badge-default badge-success">
                Empty Slot
            </span> :
            <button className="btn btn-outline-primary" onClick={onAdd}>
                <span className="fa fa-plus mr-1"/>
                Add machine
            </button>
        }
    </li>
);

export default EmptySlotComponent;