2016-11-22 21:19:08 +01:00
|
|
|
import React from 'react';
|
2017-04-07 07:15:22 +02:00
|
|
|
import Link from 'component/link';
|
2017-05-04 05:44:08 +02:00
|
|
|
import WunderBar from 'component/wunderbar';
|
|
|
|
|
|
|
|
export const Header = (props) => {
|
|
|
|
const {
|
|
|
|
balance,
|
|
|
|
back,
|
|
|
|
navigate
|
|
|
|
} = props
|
2017-05-05 19:05:33 +02:00
|
|
|
|
2017-05-04 05:44:08 +02:00
|
|
|
return <header id="header">
|
|
|
|
<div className="header__item">
|
|
|
|
<Link onClick={back} button="alt button--flat" icon="icon-arrow-left" />
|
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
2017-05-06 18:31:47 +02:00
|
|
|
<Link onClick={() => navigate('/discover')} button="alt button--flat" icon="icon-home" />
|
2017-05-04 05:44:08 +02:00
|
|
|
</div>
|
|
|
|
<div className="header__item header__item--wunderbar">
|
|
|
|
<WunderBar/>
|
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
2017-05-06 18:31:47 +02:00
|
|
|
<Link onClick={() => navigate('/wallet')} button="text" icon="icon-bank" label={balance} ></Link>
|
2017-05-04 05:44:08 +02:00
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
2017-05-26 16:19:49 +02:00
|
|
|
<Link onClick={() => navigate('/publish')} button="primary button--flat" icon="icon-upload" label={__("Publish")} />
|
2017-05-04 05:44:08 +02:00
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
2017-05-06 18:31:47 +02:00
|
|
|
<Link onClick={() => navigate('/downloaded')} button="alt button--flat" icon="icon-folder" />
|
2017-05-04 05:44:08 +02:00
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
2017-05-06 18:31:47 +02:00
|
|
|
<Link onClick={() => navigate('/settings')} button="alt button--flat" icon="icon-gear" />
|
2017-05-04 05:44:08 +02:00
|
|
|
</div>
|
|
|
|
</header>
|
2017-05-02 00:31:13 +02:00
|
|
|
}
|
2016-08-27 16:12:56 +02:00
|
|
|
|
2016-11-22 21:19:08 +01:00
|
|
|
export default Header;
|