summaryrefslogtreecommitdiff
path: root/src/components/Header.js
blob: f6a695261b8b2dbac932aef3d848a73060c78a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React from "react";
import PropTypes from "prop-types";
import { Link } from "react-router-dom";
import Button from "@mui/material/Button";

function Header(props) {
    return (
        <div id="header">
            <div id="title">
                <Link to="/">✨ SOC Dashboard</Link>
            </div>
            <div id="navigation">
                <Link to="/" className="active">
                    Example Navigation
                </Link>
                <span id="separator">•</span>
                <Link to="/">Example Navigation</Link>
                <span id="separator">•</span>
                <Link to="/">Example Navigation</Link>
            </div>
            <div id="right">
                <Button
                    variant="contained"
                    color="error"
                    onClick={props.clearToken}
                >
                    Sign out
                </Button>
            </div>
        </div>
    );
}

Header.propTypes = {
    clearToken: PropTypes.func.isRequired
};

export default Header;