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';
|
2020-06-12 22:44:25 +02:00
|
|
|
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
|
|
|
});
|
|
|
|
|
2020-06-12 22:44:25 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doToast,
|
|
|
|
})(ClaimUri);
|