lbry-desktop/ui/js/component/router/index.jsx
2017-06-05 21:21:55 -07:00

11 lines
329 B
JavaScript

import React from 'react';
import { connect } from 'react-redux';
import Router from './view.jsx';
import { selectCurrentPage, selectCurrentParams } from 'selectors/app.js';
const select = state => ({
params: selectCurrentParams(state),
currentPage: selectCurrentPage(state)
});
export default connect(select, null)(Router);