import { Sneakers } from 'types' ; import * as types from './types' ; export function fetchHomepage ( ) { return { type : types . FETCH_HOMEPAGE } ; } export function fetchHomepageSuccess ( data ) { return { type : types . FETCH_HOMEPAGE_SUCCESS , payload : data } ; } export function fetchHomepageError ( error ) { return { type : types . FETCH_HOMEPAGE_FAILURE , payload : error } ; }