17 lines
556 B
JavaScript
17 lines
556 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import { doResolveUri } from "actions/content";
|
|
import { makeSelectClaimForUri } from "selectors/claims";
|
|
import { makeSelectIsUriResolving } from "selectors/content";
|
|
import ShowPage from "./view";
|
|
|
|
const select = (state, props) => ({
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
isResolvingUri: makeSelectIsUriResolving(props.uri)(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
resolveUri: uri => dispatch(doResolveUri(uri)),
|
|
});
|
|
|
|
export default connect(select, perform)(ShowPage);
|