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