lbry-desktop/ui/js/component/drawer/index.jsx
2017-05-04 11:59:45 -04:00

29 lines
556 B
JavaScript

import React from 'react'
import {
connect
} from 'react-redux'
import Drawer from './view'
import {
doNavigate,
doCloseDrawer,
doLogoClick,
doUpdateBalance,
} from 'actions/app'
import {
selectCurrentPage,
selectBalance,
} from 'selectors/app'
const select = (state) => ({
currentPage: selectCurrentPage(state),
balance: selectBalance(state),
})
const perform = {
linkClick: doNavigate,
logoClick: doLogoClick,
closeDrawerClick: doCloseDrawer,
updateBalance: doUpdateBalance,
}
export default connect(select, perform)(Drawer)