lbry-desktop/ui/component/fileThumbnail/index.js

13 lines
479 B
JavaScript
Raw Normal View History

2020-11-02 17:51:08 +01:00
import { connect } from 'react-redux';
import { doResolveUri } from 'redux/actions/claims';
import { makeSelectClaimForUri } from 'redux/selectors/claims';
2022-04-12 18:05:47 +02:00
import { makeSelectContentPositionForUri } from 'redux/selectors/content';
import CardMedia from './view';
2017-07-14 01:18:28 +02:00
2020-11-02 17:51:08 +01:00
const select = (state, props) => ({
2022-04-12 18:05:47 +02:00
position: makeSelectContentPositionForUri(props.uri)(state),
2020-11-02 17:51:08 +01:00
claim: makeSelectClaimForUri(props.uri)(state),
});
export default connect(select, { doResolveUri })(CardMedia);