2018-07-11 14:59:01 +02:00
|
|
|
//@flow
|
|
|
|
|
import React from "react";
|
|
|
|
|
import PrimaryNavigationLink from "./PrimaryNavigationLink";
|
2018-07-12 11:33:41 +02:00
|
|
|
import PrimaryNavigationAction from "./PrimaryNavigationAction";
|
2018-07-11 14:59:01 +02:00
|
|
|
|
2018-07-12 11:33:41 +02:00
|
|
|
type Props = {
|
|
|
|
|
onLogout: () => void
|
|
|
|
|
};
|
2018-07-11 21:01:29 +02:00
|
|
|
|
2018-07-11 14:59:01 +02:00
|
|
|
class PrimaryNavigation extends React.Component<Props> {
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<nav className="tabs is-boxed">
|
|
|
|
|
<ul>
|
2018-07-12 11:33:41 +02:00
|
|
|
<PrimaryNavigationLink to="/users" label="Users" />
|
|
|
|
|
<PrimaryNavigationAction
|
|
|
|
|
onClick={this.props.onLogout}
|
|
|
|
|
label="Logout"
|
|
|
|
|
/>
|
2018-07-11 14:59:01 +02:00
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default PrimaryNavigation;
|