summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/app/sidebars/topology/rack/AddPrefabComponent.js
blob: c85431340074c5dcd1c7df0235eca6d59e647217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import PropTypes from 'prop-types'
import React from 'react'
import { SaveIcon } from '@patternfly/react-icons'
import { Button } from '@patternfly/react-core'

const AddPrefabComponent = ({ onClick }) => (
    <Button variant="primary" icon={<SaveIcon />} isBlock onClick={onClick} className="pf-u-mb-sm">
        Save this rack to a prefab
    </Button>
)

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

export default AddPrefabComponent