blob: e2da775128f9ff4aab6f0105d93de149d241563f (
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 {Link} from "react-router-dom";
import "./LogoutButton.css";
const LogoutButton = ({onLogout}) => (
<Link className="logout" title="Sign out" to="#" onClick={onLogout}>
<span className="fa fa-lg fa-power-off"/>
</Link>
);
LogoutButton.propTypes = {
onLogout: PropTypes.func.isRequired,
};
export default LogoutButton;
|