mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-06-01 15:39:00 +00:00
17 lines
454 B
TypeScript
17 lines
454 B
TypeScript
// @ts-nocheck
|
|
import { connect } from 'react-redux';
|
|
import t from '@/store/types';
|
|
|
|
export const mapStateToProps = (state, props) => {
|
|
return {};
|
|
};
|
|
|
|
export const mapDispatchToProps = (dispatch) => ({
|
|
openDrawer: (name, payload) =>
|
|
dispatch({ type: t.OPEN_DRAWER, name, payload }),
|
|
closeDrawer: (name, payload) =>
|
|
dispatch({ type: t.CLOSE_DRAWER, name, payload }),
|
|
});
|
|
|
|
export const withDrawerActions = connect(null, mapDispatchToProps);
|