2019-07-08 20:58:33 +02:00
|
|
|
import { connect } from 'react-redux';
|
2020-06-12 22:44:25 +02:00
|
|
|
import { makeSelectCanonicalUrlForUri } from 'lbry-redux';
|
|
|
|
import { doToast } from 'redux/actions/notifications';
|
2019-07-08 20:58:33 +02:00
|
|
|
import ClaimUri from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2019-08-19 06:49:54 +02:00
|
|
|
shortUrl: makeSelectCanonicalUrlForUri(props.uri)(state),
|
2019-07-08 20:58:33 +02:00
|
|
|
});
|
|
|
|
|
2020-06-12 22:44:25 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doToast,
|
|
|
|
})(ClaimUri);
|