2017-06-06 17:19:12 -04:00
|
|
|
import React from "react";
|
|
|
|
import Link from "component/link";
|
|
|
|
import WunderBar from "component/wunderbar";
|
2017-05-03 23:44:08 -04:00
|
|
|
|
2017-06-05 21:21:55 -07:00
|
|
|
export const Header = props => {
|
2017-08-15 19:29:55 -04:00
|
|
|
const {
|
|
|
|
balance,
|
|
|
|
back,
|
|
|
|
forward,
|
|
|
|
isBackDisabled,
|
|
|
|
isForwardDisabled,
|
|
|
|
navigate,
|
|
|
|
publish,
|
|
|
|
} = props;
|
2017-06-06 17:19:12 -04:00
|
|
|
return (
|
|
|
|
<header id="header">
|
|
|
|
<div className="header__item">
|
2017-08-07 22:10:42 -06:00
|
|
|
<Link
|
|
|
|
onClick={back}
|
2017-08-15 19:29:55 -04:00
|
|
|
disabled={isBackDisabled}
|
2017-08-07 22:10:42 -06:00
|
|
|
button="alt button--flat"
|
|
|
|
icon="icon-arrow-left"
|
|
|
|
title={__("Back")}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
|
|
|
<Link
|
|
|
|
onClick={forward}
|
2017-08-15 19:29:55 -04:00
|
|
|
disabled={isForwardDisabled}
|
2017-08-07 22:10:42 -06:00
|
|
|
button="alt button--flat"
|
|
|
|
icon="icon-arrow-right"
|
|
|
|
title={__("Forward")}
|
|
|
|
/>
|
2017-06-06 17:19:12 -04:00
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
|
|
|
<Link
|
|
|
|
onClick={() => navigate("/discover")}
|
|
|
|
button="alt button--flat"
|
|
|
|
icon="icon-home"
|
2017-07-30 17:24:40 -04:00
|
|
|
title={__("Discover Content")}
|
2017-06-06 17:19:12 -04:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div className="header__item header__item--wunderbar">
|
|
|
|
<WunderBar />
|
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
|
|
|
<Link
|
|
|
|
onClick={() => navigate("/wallet")}
|
|
|
|
button="text"
|
2017-10-04 21:07:04 -06:00
|
|
|
className="no-underline"
|
2017-06-06 17:19:12 -04:00
|
|
|
icon="icon-bank"
|
|
|
|
label={balance}
|
2017-07-30 17:24:40 -04:00
|
|
|
title={__("Wallet")}
|
2017-06-06 17:19:12 -04:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
|
|
|
<Link
|
|
|
|
onClick={() => navigate("/publish")}
|
|
|
|
button="primary button--flat"
|
|
|
|
icon="icon-upload"
|
|
|
|
label={publish}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
|
|
|
<Link
|
|
|
|
onClick={() => navigate("/downloaded")}
|
|
|
|
button="alt button--flat"
|
|
|
|
icon="icon-folder"
|
2017-07-30 17:24:40 -04:00
|
|
|
title={__("Downloads and Publishes")}
|
2017-06-06 17:19:12 -04:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div className="header__item">
|
|
|
|
<Link
|
|
|
|
onClick={() => navigate("/settings")}
|
|
|
|
button="alt button--flat"
|
|
|
|
icon="icon-gear"
|
2017-07-30 17:24:40 -04:00
|
|
|
title={__("Settings")}
|
2017-06-06 17:19:12 -04:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
);
|
2017-06-05 21:21:55 -07:00
|
|
|
};
|
2016-08-27 10:12:56 -04:00
|
|
|
|
2016-11-22 14:19:08 -06:00
|
|
|
export default Header;
|