mirror of
https://github.com/funamitech/mastodon
synced 2024-12-04 17:58:49 +09:00
8 lines
274 B
JavaScript
8 lines
274 B
JavaScript
// Merges react-redux props.
|
|
export function mergeProps (stateProps, dispatchProps, ownProps) {
|
|
Object.assign({}, ownProps, {
|
|
dispatch: Object.assign({}, dispatchProps, ownProps.dispatch || {}),
|
|
state: Object.assign({}, stateProps, ownProps.state || {}),
|
|
});
|
|
}
|