2018-05-10 02:21:54 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doNotify } from 'lbry-redux';
|
2018-05-11 09:41:22 +02:00
|
|
|
import { doNavigate } from 'redux/actions/navigation';
|
2018-05-10 02:21:54 +02:00
|
|
|
import ExternalLink from './view';
|
|
|
|
|
|
|
|
const select = () => ({});
|
|
|
|
const perform = dispatch => ({
|
2018-05-11 09:41:22 +02:00
|
|
|
navigate: (path, params) => dispatch(doNavigate(path, params)),
|
2018-05-10 02:21:54 +02:00
|
|
|
openModal: (modal, props) => dispatch(doNotify(modal, props)),
|
|
|
|
});
|
|
|
|
|
2018-10-31 17:37:06 +01:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ExternalLink);
|