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

14 lines
440 B
TypeScript

// @ts-nocheck
import { connect } from 'react-redux';
import t from '@/store/types';
export const mapStateToProps = (state, props) => {
return {};
};
export const mapDispatchToProps = (dispatch) => ({
openAlert: (name, payload) => dispatch({ type: t.OPEN_ALERT, name, payload }),
closeAlert: (name, payload) => dispatch({ type: t.CLOSE_ALERT, name, payload }),
});
export const withAlertActions = connect(null, mapDispatchToProps);