2019-07-08 14:58:33 -04:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-07 23:47:39 -04:00
|
|
|
import { makeSelectCanonicalUrlForUri } from 'redux/selectors/claims';
|
2020-06-12 16:44:25 -04:00
|
|
|
import { doToast } from 'redux/actions/notifications';
|
2019-07-08 14:58:33 -04:00
|
|
|
import ClaimUri from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2019-08-19 00:49:54 -04:00
|
|
|
shortUrl: makeSelectCanonicalUrlForUri(props.uri)(state),
|
2019-07-08 14:58:33 -04:00
|
|
|
});
|
|
|
|
|
2020-06-12 16:44:25 -04:00
|
|
|
export default connect(select, {
|
|
|
|
doToast,
|
|
|
|
})(ClaimUri);
|