import { Sneakers } from 'types' ; import * as types from './types' ; export function fetchCatalog ( ) { return { type : types . FETCH_CATALOG } ; } export function fetchCatalogSuccess ( data ) { return { type : types . FETCH_CATALOG_SUCCESS , payload : data } ; } export function fetchCatalogError ( error ) { return { type : types . FETCH_CATALOG_FAILURE , payload : error } ; }