lbry-desktop/ui/component/markdownLink/index.js

15 lines
433 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doOpenModal } from 'redux/actions/app';
import { selectMyChannelUrls } from 'redux/selectors/claims';
import MarkdownLink from './view';
const select = (state, props) => ({
myChannelUrls: selectMyChannelUrls(state),
});
const perform = (dispatch) => ({
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
});
export default connect(select, perform)(MarkdownLink);