diff options
Diffstat (limited to 'src/components/navigation/LogoutButton.js')
| -rw-r--r-- | src/components/navigation/LogoutButton.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/navigation/LogoutButton.js b/src/components/navigation/LogoutButton.js new file mode 100644 index 00000000..e2da7751 --- /dev/null +++ b/src/components/navigation/LogoutButton.js @@ -0,0 +1,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; |
