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

13 lines
348 B
JavaScript
Raw Normal View History

2019-07-08 20:58:33 +02:00
import { connect } from 'react-redux';
2021-11-17 12:57:04 +01:00
import { selectCanonicalUrlForUri } from 'redux/selectors/claims';
import { doToast } from 'redux/actions/notifications';
2019-07-08 20:58:33 +02:00
import ClaimUri from './view';
const select = (state, props) => ({
2021-11-17 12:57:04 +01:00
shortUrl: selectCanonicalUrlForUri(state, props.uri),
2019-07-08 20:58:33 +02:00
});
export default connect(select, {
doToast,
})(ClaimUri);