mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
// @ts-nocheck
|
|
import { connect } from 'react-redux';
|
|
import { getExpenseByIdFactory } from '@/store/expenses/expenses.selectors';
|
|
|
|
export default () => {
|
|
const getExpenseById = getExpenseByIdFactory();
|
|
|
|
const mapStateToProps = (state, props) => ({
|
|
expense: getExpenseById(state, props),
|
|
});
|
|
return connect(mapStateToProps);
|
|
};
|