lbry-desktop/ui/page/top/index.js

15 lines
301 B
JavaScript
Raw Normal View History

2020-02-11 20:04:51 +01:00
import { connect } from 'react-redux';
import TopPage from './view';
const select = (state, props) => {
const { search } = props.location;
const urlParams = new URLSearchParams(search);
const name = urlParams.get('name');
return {
name,
};
};
export default connect(select)(TopPage);