index.ts 420 B

1234567891011121314
  1. import { categoriesActionType } from '../actionType';
  2. import { ICategory } from '../../../typescript/components/Categories/interfaces';
  3. const actionGetCategoriesSusses = (arr: ICategory[]) => ({
  4. type: categoriesActionType.success,
  5. payload: arr,
  6. });
  7. const actionGetCategoriesReject = () => ({
  8. type: categoriesActionType.reject,
  9. payload: {},
  10. });
  11. export { actionGetCategoriesSusses, actionGetCategoriesReject };