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

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

export default EmptySlotComponent;