import { Sneakers } from 'types' ; import * as types from './types' ; export function fetchShoes ( slug ) { return { type : types . FETCH_SHOES , payload : slug } ; } export function fetchShoesSuccess ( data ) { return { type : types . FETCH_SHOES_SUCCESS , payload : data } ; } export function fetchShoesError ( error ) { return { type : types . FETCH_SHOES_FAILURE , payload : error } ; }