summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/navigation/LogoutButton.js
blob: 0c0feeb115d094468ddf2847bbaef80f2a3b4ce6 (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 FontAwesome from 'react-fontawesome'
import { NavLink } from 'reactstrap'

const LogoutButton = ({ onLogout }) => (
    <NavLink className="logout" title="Sign out" onClick={onLogout}>
        <FontAwesome name="power-off" size="lg" />
    </NavLink>
)

LogoutButton.propTypes = {
    onLogout: PropTypes.func.isRequired,
}

export default LogoutButton