import { transformCategoriesResponse } from '../../../utilities/categories'
import { GET_SIDEBAR_CATEGORIES } from '../../types'

export const getCategories = categories => {
  return {
    type: GET_SIDEBAR_CATEGORIES,
    categories: transformCategoriesResponse(categories)
  }
}
