2019-07-08 20:58:33 +02:00
|
|
|
import { connect } from 'react-redux';
|
2019-08-19 06:49:54 +02:00
|
|
|
import { makeSelectCanonicalUrlForUri, doToast } from 'lbry-redux';
|
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
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
{
|
|
|
|
doToast,
|
|
|
|
}
|
|
|
|
)(ClaimUri);
|