Files
bigcapital/packages/webapp/src/containers/Drawer/withDrawerActions.tsx
2026-01-01 21:58:42 +02:00

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);