18 lines
525 B
JavaScript
18 lines
525 B
JavaScript
import React from "react";
|
|
import { formatCredits } from "utils";
|
|
import { connect } from "react-redux";
|
|
import { selectBalance } from "selectors/wallet";
|
|
import { doNavigate, doHistoryBack } from "actions/app";
|
|
import Header from "./view";
|
|
|
|
const select = state => ({
|
|
balance: formatCredits(selectBalance(state), 1),
|
|
publish: __("Publish"),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
back: () => dispatch(doHistoryBack()),
|
|
});
|
|
|
|
export default connect(select, perform)(Header);
|