index.ts 328 B

123456789101112
  1. import { Dispatch } from 'react';
  2. import pdfActions from './pdf';
  3. import mainActions from './main';
  4. import searchActions from './search';
  5. const useActions = (dispatch: Dispatch<any>): Record<string, any> => ({
  6. ...pdfActions(dispatch),
  7. ...mainActions(dispatch),
  8. ...searchActions(dispatch),
  9. });
  10. export default useActions;