summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/app/sidebars/topology/rack/AddPrefabComponent.js
blob: a330c302a561f519cdd325d67fc18b95a8469651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import PropTypes from 'prop-types'
import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faSave } from '@fortawesome/free-solid-svg-icons'
import { Button } from 'reactstrap'

const AddPrefabComponent = ({ onClick }) => (
    <Button color="primary" block onClick={onClick}>
        <FontAwesomeIcon icon={faSave} className="mr-2" />
        Save this rack to a prefab
    </Button>
)

AddPrefabComponent.propTypes = {
    onClick: PropTypes.func,
}

export default AddPrefabComponent