summaryrefslogtreecommitdiff
path: root/src/components/sidebars/topology/rack/EmptySlotComponent.js
blob: 5234ee63814f5276daf1a4a9cec44400e8313767 (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 justify-content-between">
        <span className="badge badge-default badge-info">
            {position}
        </span>
        Add machine
        <button className="btn btn-secondary" onClick={onAdd}>
            <FontAwesome name="plus"/>
        </button>
    </li>
);

export default EmptySlotComponent;