mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
10 lines
265 B
JavaScript
10 lines
265 B
JavaScript
import { connect } from 'react-redux';
|
|
import t from 'store/types';
|
|
import { getItemById } from 'store/items/items.reducer';
|
|
|
|
const mapStateToProps = (state, props) => ({
|
|
itemDetail: getItemById(state, props.itemId),
|
|
});
|
|
|
|
export default connect(mapStateToProps);
|